suanPan
Loading...
Searching...
No Matches
MetaMat< T > Class Template Referenceabstract

A MetaMat class that holds matrices. More...

#include <MetaMat.hpp>

Inheritance diagram for MetaMat< T >:
Collaboration diagram for MetaMat< T >:

Public Member Functions

 MetaMat (uword, uword, uword)
 
 MetaMat (const MetaMat &)=default
 
 MetaMat (MetaMat &&) noexcept=delete
 
MetaMatoperator= (const MetaMat &)=delete
 
MetaMatoperator= (MetaMat &&) noexcept=delete
 
virtual ~MetaMat ()=default
 
void set_solver_setting (const SolverSetting< T > &)
 
SolverSetting< T > & get_solver_setting ()
 
void set_factored (bool)
 
virtual bool is_empty () const =0
 
virtual void zeros ()=0
 
virtual unique_ptr< MetaMatmake_copy ()=0
 
virtual void unify (uword)=0
 
virtual void nullify (uword)=0
 
virtual T max () const =0
 
virtual Col< Tdiag () const =0
 
virtual const Toperator() (uword, uword) const =0
 Access element (read-only), returns zero if out-of-bound. More...
 
virtual Tunsafe_at (uword, uword)
 Access element without bound check. More...
 
virtual Tat (uword, uword)=0
 Access element with bound check. More...
 
virtual const Tmemptr () const =0
 
virtual Tmemptr ()=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< Toperator* (const Mat< T > &) const =0
 
virtual void operator*= (T)=0
 
template<ArmaContainer< T > C>
Mat< Tsolve (const C &B)
 
template<ArmaContainer< T > C>
Mat< Tsolve (C &&B)
 
template<ArmaContainer< T > C>
int solve (Mat< T > &X, const C &B)
 
template<ArmaContainer< T > C>
int solve (Mat< T > &X, C &&B)
 
template<ArmaContainer< T > C>
Mat< Tdirect_solve (const C &B)
 
template<ArmaContainer< T > C>
Mat< Tdirect_solve (C &&B)
 
virtual int direct_solve (Mat< T > &, const Mat< T > &)=0
 
virtual int direct_solve (Mat< T > &, const SpMat< T > &)
 
virtual int direct_solve (Mat< T > &, Mat< T > &&)
 
virtual int direct_solve (Mat< T > &, SpMat< T > &&)
 
virtual int sign_det () const =0
 
void save (const char *)
 
virtual void csc_condense ()
 
virtual void csr_condense ()
 
Mat< Titerative_solve (const Mat< T > &)
 
Mat< Titerative_solve (const SpMat< T > &)
 
virtual int iterative_solve (Mat< T > &, const Mat< T > &)
 
int iterative_solve (Mat< T > &, const SpMat< T > &)
 
Col< Tevaluate (const Col< T > &) const
 

Public Attributes

triplet_form< T, uword > triplet_mat
 
const uword n_rows
 
const uword n_cols
 
const uword n_elem
 

Protected Attributes

bool factored = false
 
SolverSetting< Tsetting {}
 

Detailed Description

template<sp_d T>
class MetaMat< T >

A MetaMat class that holds matrices.

Author
tlc
Date
08/09/2017
Version
0.2.0

Constructor & Destructor Documentation

◆ MetaMat() [1/2]

template<sp_d T>
MetaMat< T >::MetaMat ( const MetaMat< T > &  )
default

◆ MetaMat() [2/2]

template<sp_d T>
MetaMat< T >::MetaMat ( MetaMat< T > &&  )
deletenoexcept

◆ ~MetaMat()

template<sp_d T>
virtual MetaMat< T >::~MetaMat ( )
virtualdefault

Member Function Documentation

◆ at()

template<sp_d T>
virtual T & MetaMat< T >::at ( uword  ,
uword   
)
pure virtual

Access element with bound check.

Returns
value

Implemented in BandMat< T >, BandMatSpike< T >, BandSymmMat< T >, FullMat< T >, SparseMat< T >, and SymmPackMat< T >.

◆ diag()

template<sp_d T>
virtual Col< T > MetaMat< T >::diag ( ) const
pure virtual

Implemented in DenseMat< T >, and SparseMat< T >.

◆ direct_solve() [1/3]

template<sp_d T>
template<ArmaContainer< T > C>
Mat< T > MetaMat< T >::direct_solve ( C &&  B)
inline
Here is the call graph for this function:

◆ direct_solve() [2/3]

template<sp_d T>
template<ArmaContainer< T > C>
Mat< T > MetaMat< T >::direct_solve ( const C &  B)
inline
Here is the call graph for this function:
Here is the caller graph for this function:

◆ direct_solve() [3/3]

template<sp_d T>
virtual int MetaMat< T >::direct_solve ( Mat< T > &  ,
const Mat< T > &   
)
pure virtual

◆ is_empty()

template<sp_d T>
virtual bool MetaMat< T >::is_empty ( ) const
pure virtual

Implemented in DenseMat< T >, and SparseMat< T >.

◆ make_copy()

template<sp_d T>
virtual unique_ptr< MetaMat > MetaMat< T >::make_copy ( )
pure virtual

◆ max()

template<sp_d T>
virtual T MetaMat< T >::max ( ) const
pure virtual

Implemented in DenseMat< T >, and SparseMat< T >.

◆ memptr() [1/2]

template<sp_d T>
virtual const T * MetaMat< T >::memptr ( ) const
pure virtual

Implemented in DenseMat< T >, and SparseMat< T >.

◆ memptr() [2/2]

template<sp_d T>
virtual T * MetaMat< T >::memptr ( )
pure virtual

Implemented in DenseMat< T >, and SparseMat< T >.

◆ nullify()

template<sp_d T>
virtual void MetaMat< T >::nullify ( uword  )
pure virtual

◆ operator()()

template<sp_d T>
virtual const T & MetaMat< T >::operator() ( uword  ,
uword   
) const
pure virtual

Access element (read-only), returns zero if out-of-bound.

Returns
value

Implemented in BandMat< T >, BandMatSpike< T >, BandSymmMat< T >, FullMat< T >, SparseMat< T >, and SymmPackMat< T >.

◆ operator*()

template<sp_d T>
virtual Mat< T > MetaMat< T >::operator* ( const Mat< T > &  ) const
pure virtual

◆ operator*=()

template<sp_d T>
virtual void MetaMat< T >::operator*= ( T  )
pure virtual

Implemented in DenseMat< T >, and SparseMat< T >.

◆ operator+=() [1/2]

template<sp_d T>
virtual void MetaMat< T >::operator+= ( const shared_ptr< MetaMat< T > > &  )
pure virtual

Implemented in DenseMat< T >, and SparseMat< T >.

◆ operator+=() [2/2]

template<sp_d T>
virtual void MetaMat< T >::operator+= ( const triplet_form< T, uword > &  )
pure virtual

Implemented in DenseMat< T >, and SparseMat< T >.

◆ operator-=() [1/2]

template<sp_d T>
virtual void MetaMat< T >::operator-= ( const shared_ptr< MetaMat< T > > &  )
pure virtual

Implemented in DenseMat< T >, and SparseMat< T >.

◆ operator-=() [2/2]

template<sp_d T>
virtual void MetaMat< T >::operator-= ( const triplet_form< T, uword > &  )
pure virtual

Implemented in DenseMat< T >, and SparseMat< T >.

◆ operator=() [1/2]

template<sp_d T>
MetaMat & MetaMat< T >::operator= ( const MetaMat< T > &  )
delete
Here is the caller graph for this function:

◆ operator=() [2/2]

template<sp_d T>
MetaMat & MetaMat< T >::operator= ( MetaMat< T > &&  )
deletenoexcept

◆ sign_det()

template<sp_d T>
virtual int MetaMat< T >::sign_det ( ) const
pure virtual

◆ solve() [1/4]

template<sp_d T>
template<ArmaContainer< T > C>
Mat< T > MetaMat< T >::solve ( C &&  B)
inline
Here is the call graph for this function:

◆ solve() [2/4]

template<sp_d T>
template<ArmaContainer< T > C>
Mat< T > MetaMat< T >::solve ( const C &  B)
inline
Here is the call graph for this function:
Here is the caller graph for this function:

◆ solve() [3/4]

template<sp_d T>
template<ArmaContainer< T > C>
int MetaMat< T >::solve ( Mat< T > &  X,
C &&  B 
)
inline
Here is the call graph for this function:

◆ solve() [4/4]

template<sp_d T>
template<ArmaContainer< T > C>
int MetaMat< T >::solve ( Mat< T > &  X,
const C &  B 
)
inline
Here is the call graph for this function:

◆ unify()

template<sp_d T>
virtual void MetaMat< T >::unify ( uword  )
pure virtual

◆ zeros()

template<sp_d T>
virtual void MetaMat< T >::zeros ( )
pure virtual

Member Data Documentation

◆ factored

template<sp_d T>
bool MetaMat< T >::factored = false
protected

◆ n_cols

template<sp_d T>
const uword MetaMat< T >::n_cols

◆ n_elem

template<sp_d T>
const uword MetaMat< T >::n_elem

◆ n_rows

template<sp_d T>
const uword MetaMat< T >::n_rows

◆ setting

template<sp_d T>
SolverSetting<T> MetaMat< T >::setting {}
protected

◆ triplet_mat

template<sp_d T>
triplet_form<T, uword> MetaMat< T >::triplet_mat

The documentation for this class was generated from the following file: