Psi4
Public Member Functions | Private Attributes | List of all members
psi::psimrcc::MatrixBase Class Reference

#include <special_matrices.h>

Public Member Functions

 MatrixBase (size_t nrows_, size_t ncols)
 
 ~MatrixBase ()
 
size_t get_nrows ()
 
size_t get_ncols ()
 
void add (size_t row, size_t col, double value)
 
void set (size_t row, size_t col, double value)
 
double get (size_t row, size_t col)
 
double ** get_matrix ()
 
void zero ()
 
void print ()
 
void add (MatrixBase *A, double alpha, double beta)
 
void multiply (MatrixBase *A, MatrixBase *B, double alpha, double beta)
 
void contract (MatrixBase *A, MatrixBase *B, double const alpha, double const beta)
 
double norm ()
 

Private Attributes

size_t nrows
 
size_t ncols
 
double ** matrix
 

Constructor & Destructor Documentation

psi::psimrcc::MatrixBase::MatrixBase ( size_t  nrows_,
size_t  ncols 
)
psi::psimrcc::MatrixBase::~MatrixBase ( )

Member Function Documentation

void psi::psimrcc::MatrixBase::add ( size_t  row,
size_t  col,
double  value 
)
inline
void psi::psimrcc::MatrixBase::add ( MatrixBase A,
double  alpha,
double  beta 
)
void psi::psimrcc::MatrixBase::contract ( MatrixBase A,
MatrixBase B,
double const  alpha,
double const  beta 
)
double psi::psimrcc::MatrixBase::get ( size_t  row,
size_t  col 
)
inline
double** psi::psimrcc::MatrixBase::get_matrix ( )
inline
size_t psi::psimrcc::MatrixBase::get_ncols ( )
inline
size_t psi::psimrcc::MatrixBase::get_nrows ( )
inline
void psi::psimrcc::MatrixBase::multiply ( MatrixBase A,
MatrixBase B,
double  alpha,
double  beta 
)
double psi::psimrcc::MatrixBase::norm ( )
void psi::psimrcc::MatrixBase::print ( void  )
void psi::psimrcc::MatrixBase::set ( size_t  row,
size_t  col,
double  value 
)
inline
void psi::psimrcc::MatrixBase::zero ( void  )

Member Data Documentation

double** psi::psimrcc::MatrixBase::matrix
private
size_t psi::psimrcc::MatrixBase::ncols
private
size_t psi::psimrcc::MatrixBase::nrows
private

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