|
| | SparseMatMAGMA (const uword in_row, const uword in_col, const uword in_elem=0) |
| |
| | SparseMatMAGMA (const SparseMatMAGMA &) |
| |
| | SparseMatMAGMA (SparseMatMAGMA &&)=delete |
| |
| SparseMatMAGMA & | operator= (const SparseMatMAGMA &)=delete |
| |
| SparseMatMAGMA & | operator= (SparseMatMAGMA &&)=delete |
| |
| | ~SparseMatMAGMA () override |
| |
| unique_ptr< MetaMat< T > > | unique_copy () override |
| |
| | SparseMat (const uword in_row, const uword in_col, const uword in_elem=0) |
| |
| bool | is_empty () const override |
| |
| void | zeros () override |
| |
| void | nullify (const uword idx) override |
| |
| T | max () const override |
| |
| T | operator() (const uword in_row, const uword in_col) const override |
| | Access element (read-only), returns zero if out-of-bound.
|
| |
| T & | at (const uword in_row, const uword in_col) override |
| | Access element with bound check.
|
| |
| const T * | memptr () const override |
| |
| T * | memptr () override |
| |
| void | scale_accu (const T scalar, const shared_ptr< MetaMat< T > > &in_mat) override |
| |
| void | scale_accu (const T scalar, const triplet_form< T, uword > &in_mat) override |
| |
| Mat< T > | operator* (const Mat< T > &in_mat) const override |
| |
| void | operator*= (const T scalar) override |
| |
| void | allreduce () override |
| |
| void | csc_condense () override |
| |
| void | csr_condense () override |
| |
| | MetaMat (const uword in_rows, const uword in_cols, const uword in_elem) |
| |
| | MetaMat (const MetaMat &)=default |
| |
| | MetaMat (MetaMat &&)=delete |
| |
| MetaMat & | operator= (const MetaMat &)=delete |
| |
| MetaMat & | operator= (MetaMat &&)=delete |
| |
| virtual | ~MetaMat ()=default |
| |
| void | set_solver_setting (const SolverSetting< T > &SS) |
| |
| SolverSetting< T > & | get_solver_setting () |
| |
| void | set_factored (const bool F) |
| |
| void | unify (const uword K) |
| |
| void | unify (const uvec &list) |
| |
| void | nullify (const uvec &list) |
| |
| virtual T & | unsafe_at (const uword I, const uword J) |
| | Access element without bound check.
|
| |
| void | operator+= (const shared_ptr< MetaMat > &M) |
| |
| void | operator-= (const shared_ptr< MetaMat > &M) |
| |
| void | operator+= (const op_scale< T > &M) |
| |
| void | operator-= (const op_scale< T > &M) |
| |
| void | operator+= (const triplet_form< T, uword > &M) |
| |
| void | operator-= (const triplet_form< T, uword > &M) |
| |
template<typename C >
requires is_arma_mat<T, C> |
| int | solve (Mat< T > &X, C &&B) |
| |
template<typename C >
requires is_arma_mat<T, C> |
| Mat< T > | solve (C &&B) |
| |
| virtual int | sign_det () const |
| |
| void | save (const char *name) |
| |
template<
sp_d T>
class SparseMatMAGMA< T >
A SparseMatMAGMA class that holds matrices.
TODO: improve performance by storing factorization and reusing it
- Author
- tlc
- Date
- 24/02/2023
- Version
- 0.1.0