KrisLibrary  1.0.0
Public Types | Public Member Functions | Public Attributes | List of all members
Math::BlockTridiagonalMatrix Class Reference

Public Types

typedef BlockTridiagonalMatrix MyT
 

Public Member Functions

 BlockTridiagonalMatrix (int nBlock)
 
 BlockTridiagonalMatrix (int nBlock, int nMat)
 
 BlockTridiagonalMatrix (int nBlock, int nMat, Real initVal)
 
int numBlockRows () const
 
int numBlockCols () const
 
int numTotalRows () const
 
int numTotalCols () const
 
void resize (int nBlock)
 
void resize (int nBlock, int nMat)
 
void resize (int nBlock, int nMat, Real initVal)
 
void resizeSimilar (const MyT &)
 
void clear ()
 
Matrixoperator() (int i, int j)
 
const Matrixoperator() (int i, int j) const
 
void operator+= (const MyT &a)
 
void operator-= (const MyT &a)
 
void add (const MyT &, const MyT &)
 
void sub (const MyT &, const MyT &)
 
void mul (const MyT &, Real c)
 
void div (const MyT &, Real c)
 
void inc (const MyT &)
 
void dec (const MyT &)
 
void madd (const MyT &, Real c)
 
void mul (const BlockVector &a, BlockVector &x) const
 
void mulTranspose (const BlockVector &a, BlockVector &x) const
 
void madd (const BlockVector &a, BlockVector &x) const
 
void maddTranspose (const BlockVector &a, BlockVector &x) const
 
void setZero ()
 
void set (Real)
 
void setIdentity ()
 
void setTranspose (const MyT &)
 
bool solveInverse_LU (const BlockVector &b, BlockVector &x) const
 
bool solveInverse_Cholesky (const BlockVector &b, BlockVector &x) const
 
void inplaceTranspose ()
 
void getMatrix (Matrix &) const
 
bool isEmpty () const
 
bool isValid () const
 
bool hasDims (const MyT &m) const
 
bool hasDims (int nBlock, int nMat) const
 

Public Attributes

std::vector< Matrixdiagonal
 
std::vector< MatrixupperDiagonal
 
std::vector< MatrixlowerDiagonal
 

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