MOCHA 0.9
Public Member Functions | Public Attributes | Static Public Attributes | Friends
Matrix Class Reference

#include <matrix.h>

List of all members.

Public Member Functions

 Matrix ()
 Matrix (unsigned, unsigned)
 Matrix (unsigned)
 Matrix (unsigned, unsigned, int, int)
 ~Matrix ()
 Matrix (const Matrix &m)
Matrixoperator= (const Matrix &m)
bool operator== (const Matrix &m)
double & operator() (unsigned row, unsigned col)
double operator() (unsigned row, unsigned col) const
Matrix operator* (const Matrix &B) const
Matrix operator* (const double &rhs) const
Matrix operator+ (const Matrix &B) const
Matrix operator- (const Matrix &B) const
Matrix transpose ()
void writeMatlab (std::ostream &o, string label)
Matrix subColumns (const set< unsigned > &colSet)
Matrix subColumnsDiff (const set< unsigned > &colSet)
Matrix rowSum ()
Matrix cofactor (unsigned i, unsigned j)
Matrix GE ()
int rank ()
double trace ()
long double det ()
long double detCofactor ()
long double detLU ()
long double log_abs_det ()
void SVD (Matrix &U, Matrix &S, Matrix &V)
double LU (Matrix &P, Matrix &L, Matrix &U)
Matrix inverse ()
int rank_LAPACK ()
const int getCols ()
const int getRows ()
void swapCols (unsigned i, unsigned j)
void swapRows (unsigned i, unsigned j)
double twoNorm ()
double twoNormSquared ()

Public Attributes

unsigned rows
unsigned cols

Static Public Attributes

static int printPadLength = 0

Friends

std::ostream & operator<< (std::ostream &o, const Matrix &someMatrix)
std::istream & operator>> (std::istream &in, Matrix &someMatrix)

Constructor & Destructor Documentation

Matrix::Matrix ( )
Matrix::Matrix ( unsigned  r,
unsigned  c 
)
Matrix::Matrix ( unsigned  d)
Matrix::Matrix ( unsigned  r,
unsigned  c,
int  lower,
int  upper 
)
Matrix::~Matrix ( )
Matrix::Matrix ( const Matrix m)

Member Function Documentation

Matrix Matrix::cofactor ( unsigned  i,
unsigned  j 
)
long double Matrix::det ( )
long double Matrix::detCofactor ( )
long double Matrix::detLU ( )
Matrix Matrix::GE ( )
const int Matrix::getCols ( )
const int Matrix::getRows ( )
Matrix Matrix::inverse ( )
long double Matrix::log_abs_det ( )
double Matrix::LU ( Matrix P,
Matrix L,
Matrix U 
)
double Matrix::operator() ( unsigned  row,
unsigned  col 
) const
double & Matrix::operator() ( unsigned  row,
unsigned  col 
)
Matrix Matrix::operator* ( const Matrix B) const
Matrix Matrix::operator* ( const double &  rhs) const
Matrix Matrix::operator+ ( const Matrix B) const
Matrix Matrix::operator- ( const Matrix B) const
Matrix & Matrix::operator= ( const Matrix m)
bool Matrix::operator== ( const Matrix m)
int Matrix::rank ( )
int Matrix::rank_LAPACK ( )
Matrix Matrix::rowSum ( )
Matrix Matrix::subColumns ( const set< unsigned > &  colSet)
Matrix Matrix::subColumnsDiff ( const set< unsigned > &  colSet)
void Matrix::SVD ( Matrix U,
Matrix S,
Matrix V 
)
void Matrix::swapCols ( unsigned  i,
unsigned  j 
)
void Matrix::swapRows ( unsigned  i,
unsigned  j 
)
double Matrix::trace ( )
Matrix Matrix::transpose ( )
double Matrix::twoNorm ( )
double Matrix::twoNormSquared ( )
void Matrix::writeMatlab ( std::ostream &  o,
string  label 
)

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  o,
const Matrix someMatrix 
) [friend]
std::istream& operator>> ( std::istream &  in,
Matrix someMatrix 
) [friend]

Member Data Documentation

unsigned Matrix::cols
int Matrix::printPadLength = 0 [static]
unsigned Matrix::rows

The documentation for this class was generated from the following files:
 All Classes Files Functions Variables Friends Defines