suanPan
Loading...
Searching...
No Matches
FullMatCUDA< T > Class Template Referencefinal

A FullMatCUDA class that holds matrices. More...

#include <FullMatCUDA.hpp>

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

Public Member Functions

 FullMatCUDA (const uword in_rows, const uword in_cols)
 
 FullMatCUDA (const FullMatCUDA &other)
 
 FullMatCUDA (FullMatCUDA &&)=delete
 
FullMatCUDAoperator= (const FullMatCUDA &)=delete
 
FullMatCUDAoperator= (FullMatCUDA &&)=delete
 
 ~FullMatCUDA () override
 
unique_ptr< MetaMat< T > > make_copy () override
 
- Public Member Functions inherited from FullMat< T >
 FullMat (const uword in_rows, const uword in_cols)
 
void nullify (const uword K) override
 
T operator() (const uword in_row, const uword in_col) const override
 Access element (read-only), returns zero if out-of-bound.
 
Tat (const uword in_row, const uword in_col) override
 Access element with bound check.
 
Mat< Toperator* (const Mat< T > &) const override
 
int sign_det () const override
 
- Public Member Functions inherited from DenseMat< T >
 DenseMat (const uword in_rows, const uword in_cols, const uword in_elem)
 
 DenseMat (const DenseMat &old_mat)
 
 DenseMat (DenseMat &&)=delete
 
DenseMatoperator= (const DenseMat &)=delete
 
DenseMatoperator= (DenseMat &&)=delete
 
 ~DenseMat () override=default
 
bool is_empty () const override
 
void zeros () override
 
T max () const override
 
const Tmemptr () const override
 
Tmemptr () override
 
void scale_accu (const T scalar, const shared_ptr< MetaMat< T > > &M) override
 
void scale_accu (const T scalar, const triplet_form< T, uword > &M) override
 
void operator*= (const T value) override
 
void allreduce () override
 
- Public Member Functions inherited from MetaMat< T >
 MetaMat (const uword in_rows, const uword in_cols, const uword in_elem)
 
 MetaMat (const MetaMat &)=default
 
 MetaMat (MetaMat &&)=delete
 
MetaMatoperator= (const MetaMat &)=delete
 
MetaMatoperator= (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)
 
virtual Tunsafe_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< Tsolve (C &&B)
 
void save (const char *name)
 
virtual void csc_condense ()
 
virtual void csr_condense ()
 

Protected Member Functions

int direct_solve (Mat< T > &X, Mat< T > &&B) override
 
int direct_solve (Mat< T > &, const Mat< T > &) override
 
- Protected Member Functions inherited from DenseMat< T >
podarray< float > to_float ()
 
- Protected Member Functions inherited from MetaMat< T >
int direct_solve (Mat< T > &X, const SpMat< T > &B)
 
int direct_solve (Mat< T > &X, SpMat< T > &&B)
 
template<std::invocable< fmat & > F>
int mixed_trs (mat &X, mat &&B, F &&trs)
 

Additional Inherited Members

- Public Attributes inherited from MetaMat< T >
triplet_form< T, uword > triplet_mat
 
const uword n_rows
 
const uword n_cols
 
const uword n_elem
 
- Protected Attributes inherited from DenseMat< T >
podarray< blas_int > pivot
 
podarray< float > s_memory
 
std::unique_ptr< T[]> memory = nullptr
 
- Protected Attributes inherited from MetaMat< T >
bool factored = false
 
SolverSetting< Tsetting {}
 

Detailed Description

template<sp_d T>
class FullMatCUDA< T >

A FullMatCUDA class that holds matrices.

Author
tlc
Date
17/04/2021
Version
0.1.0

Constructor & Destructor Documentation

◆ FullMatCUDA() [1/3]

template<sp_d T>
FullMatCUDA< T >::FullMatCUDA ( const uword  in_rows,
const uword  in_cols 
)
inline

◆ FullMatCUDA() [2/3]

template<sp_d T>
FullMatCUDA< T >::FullMatCUDA ( const FullMatCUDA< T > &  other)
inline

◆ FullMatCUDA() [3/3]

template<sp_d T>
FullMatCUDA< T >::FullMatCUDA ( FullMatCUDA< T > &&  )
delete

◆ ~FullMatCUDA()

template<sp_d T>
FullMatCUDA< T >::~FullMatCUDA ( )
inlineoverride

Member Function Documentation

◆ direct_solve()

template<sp_d T>
int FullMatCUDA< T >::direct_solve ( Mat< T > &  X,
Mat< T > &&  B 
)
inlineoverrideprotectedvirtual

Reimplemented from FullMat< T >.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ make_copy()

template<sp_d T>
unique_ptr< MetaMat< T > > FullMatCUDA< T >::make_copy ( )
inlineoverridevirtual

Reimplemented from FullMat< T >.

◆ operator=() [1/2]

template<sp_d T>
FullMatCUDA & FullMatCUDA< T >::operator= ( const FullMatCUDA< T > &  )
delete

◆ operator=() [2/2]

template<sp_d T>
FullMatCUDA & FullMatCUDA< T >::operator= ( FullMatCUDA< T > &&  )
delete

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