|
suanPan
|
A MetaMat class that holds matrices. More...
#include <MetaMat.hpp>
Public Member Functions | |
| MetaMat (const uword in_rows, const uword in_cols, const uword in_elem) | |
| MetaMat (const MetaMat &)=default | |
| MetaMat (MetaMat &&) noexcept=delete | |
| MetaMat & | operator= (const MetaMat &)=delete |
| MetaMat & | operator= (MetaMat &&) noexcept=delete |
| virtual | ~MetaMat ()=default |
| void | set_solver_setting (const SolverSetting< T > &SS) |
| SolverSetting< T > & | get_solver_setting () |
| void | set_factored (const bool F) |
| virtual bool | is_empty () const =0 |
| virtual void | zeros ()=0 |
| virtual unique_ptr< MetaMat > | make_copy ()=0 |
| void | unify (const uword K) |
| virtual void | nullify (uword)=0 |
| virtual T | max () const =0 |
| virtual Col< T > | diag () const =0 |
| virtual T | operator() (uword, uword) const =0 |
| Access element (read-only), returns zero if out-of-bound. More... | |
| virtual T & | unsafe_at (const uword I, const uword J) |
| Access element without bound check. More... | |
| virtual T & | at (uword, uword)=0 |
| Access element with bound check. More... | |
| virtual const T * | memptr () const =0 |
| virtual T * | memptr ()=0 |
| virtual void | operator+= (const shared_ptr< MetaMat > &)=0 |
| virtual void | operator-= (const shared_ptr< MetaMat > &)=0 |
| virtual void | operator+= (const triplet_form< T, uword > &)=0 |
| virtual void | operator-= (const triplet_form< T, uword > &)=0 |
| virtual Mat< T > | operator* (const Mat< T > &) const =0 |
| virtual void | operator*= (T)=0 |
| template<ArmaContainer< T > C> | |
| int | solve (Mat< T > &X, const C &B) |
| template<ArmaContainer< T > C> | |
| int | solve (Mat< T > &X, C &&B) |
| virtual int | sign_det () const =0 |
| void | save (const char *name) |
| virtual void | csc_condense () |
| virtual void | csr_condense () |
| Col< T > | evaluate (const Col< T > &X) const |
Public Attributes | |
| triplet_form< T, uword > | triplet_mat |
| const uword | n_rows |
| const uword | n_cols |
| const uword | n_elem |
Protected Member Functions | |
| virtual int | direct_solve (Mat< T > &, const Mat< T > &)=0 |
| virtual int | direct_solve (Mat< T > &, Mat< T > &&)=0 |
| int | direct_solve (Mat< T > &X, const SpMat< T > &B) |
| int | direct_solve (Mat< T > &X, SpMat< T > &&B) |
| int | iterative_solve (Mat< T > &, const Mat< T > &) |
| int | iterative_solve (Mat< T > &X, const SpMat< T > &B) |
| template<std::invocable< fmat & > F> | |
| int | mixed_trs (mat &X, mat &&B, F trs) |
Protected Attributes | |
| bool | factored = false |
| SolverSetting< T > | setting {} |
A MetaMat class that holds matrices.
|
inline |
Access element with bound check.
Implemented in SymmPackMat< T >, SparseMat< T >, FullMat< T >, BandSymmMat< T >, BandMatSpike< T >, and BandMat< T >.
Reimplemented in SparseMat< T >.
Reimplemented in SparseMat< T >.
Implemented in SparseMat< T >, and DenseMat< T >.
|
protectedpure virtual |
Implemented in SparseMatBaseMUMPS< T >, DenseMat< T >, SparseMatSuperLU< T >, and SparseMatLis< T >.
|
inlineprotected |
|
inline |
Implemented in SparseMat< T >, and DenseMat< T >.
|
inlineprotected |
Implemented in SparseMat< T >, and DenseMat< T >.
Implemented in SparseMat< T >, and DenseMat< T >.
Implemented in SparseMat< T >, and DenseMat< T >.
|
inlineprotected |
Implemented in SymmPackMat< T >, FullMat< T >, BandSymmMat< T >, BandMatSpike< T >, BandMat< T >, and SparseMat< T >.
Access element (read-only), returns zero if out-of-bound.
Implemented in SymmPackMat< T >, SparseMat< T >, FullMat< T >, BandSymmMat< T >, BandMatSpike< T >, and BandMat< T >.
Implemented in SparseMat< T >, SymmPackMat< T >, FullMat< T >, BandSymmMat< T >, BandMatSpike< T >, and BandMat< T >.
Implemented in DenseMat< T >, and SparseMat< T >.
|
pure virtual |
|
pure virtual |
Implemented in DenseMat< T >, and SparseMat< T >.
|
pure virtual |
|
pure virtual |
Implemented in DenseMat< T >, and SparseMat< T >.
|
inline |
Implemented in SparseMatBaseMUMPS< T >, SparseMat< T >, DenseMat< T >, and BandMatSpike< T >.
|
inline |
|
inline |
Access element without bound check.
Reimplemented in SymmPackMat< T >, BandSymmMat< T >, BandMatSpike< T >, and BandMat< T >.
Implemented in SparseMatSuperLU< T >, SparseMatBaseMUMPS< T >, SparseMat< T >, and DenseMat< T >.
|
protected |
| triplet_form<T, uword> MetaMat< T >::triplet_mat |