HMLP: High-performance Machine Learning Primitives
pvfmm::Matrix< ValueType > Class Template Reference

Public Member Functions

 Matrix (Long dim1, Long dim2, Iterator< ValueType > data_=NULL, bool own_data_=true)
 
 Matrix (const Matrix< ValueType > &M)
 
void Swap (Matrix< ValueType > &M)
 
void ReInit (Long dim1, Long dim2, Iterator< ValueType > data_=NULL, bool own_data_=true)
 
void Write (const char *fname) const
 
void Read (const char *fname)
 
Long Dim (Long i) const
 
void SetZero ()
 
Iterator< ValueType > Begin ()
 
ConstIterator< ValueType > Begin () const
 
Matrix< ValueType > & operator= (const Matrix< ValueType > &M)
 
Matrix< ValueType > & operator+= (const Matrix< ValueType > &M)
 
Matrix< ValueType > & operator-= (const Matrix< ValueType > &M)
 
Matrix< ValueType > operator+ (const Matrix< ValueType > &M2) const
 
Matrix< ValueType > operator- (const Matrix< ValueType > &M2) const
 
ValueType & operator() (Long i, Long j)
 
const ValueType & operator() (Long i, Long j) const
 
Iterator< ValueType > operator[] (Long i)
 
ConstIterator< ValueType > operator[] (Long i) const
 
Matrix< ValueType > operator* (const Matrix< ValueType > &M) const
 
void RowPerm (const Permutation< ValueType > &P)
 
void ColPerm (const Permutation< ValueType > &P)
 
Matrix< ValueType > Transpose () const
 
void SVD (Matrix< ValueType > &tU, Matrix< ValueType > &tS, Matrix< ValueType > &tVT)
 
Matrix< ValueType > pinv (ValueType eps=-1)
 

Static Public Member Functions

static void GEMM (Matrix< ValueType > &M_r, const Matrix< ValueType > &A, const Matrix< ValueType > &B, ValueType beta=0.0)
 
static void GEMM (Matrix< ValueType > &M_r, const Permutation< ValueType > &P, const Matrix< ValueType > &M, ValueType beta=0.0)
 
static void GEMM (Matrix< ValueType > &M_r, const Matrix< ValueType > &M, const Permutation< ValueType > &P, ValueType beta=0.0)
 
static void CUBLASGEMM (Matrix< ValueType > &M_r, const Matrix< ValueType > &A, const Matrix< ValueType > &B, ValueType beta=0.0)
 
static void Transpose (Matrix< ValueType > &M_r, const Matrix< ValueType > &M)
 

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