8 #ifndef BORDEREDBANDMATRIX_H_ 9 #define BORDEREDBANDMATRIX_H_ 17 #include "TMatrixDSym.h" 60 void resize(
unsigned int nSize,
unsigned int nBorder = 1,
61 unsigned int nBand = 5);
65 const std::vector<unsigned int>* anIndex,
66 const std::vector<double>* aVector);
67 TMatrixDSym
getBlockMatrix(
const std::vector<unsigned int> anIndex)
const;
void printMatrix() const
Print bordered band matrix.
void addBlockMatrix(double aWeight, const std::vector< unsigned int > *anIndex, const std::vector< double > *aVector)
Add symmetric block matrix.
Simple Matrix based on std::vector<double>
virtual ~BorderedBandMatrix()
(Symmetric) Bordered Band Matrix.
BorderedBandMatrix()
Create bordered band matrix.
unsigned int numCol
Band matrix size.
VMatrix invertBand()
Invert band part.
VMatrix theMixed
Mixed part.
void decomposeBand()
(root free) Cholesky decomposition of band part: C=LDL^T
Namespace for the general broken lines package.
unsigned int numBorder
Border size.
Simple symmetric Matrix based on std::vector<double>
VSymMatrix theBorder
Border part.
void resize(unsigned int nSize, unsigned int nBorder=1, unsigned int nBand=5)
Resize bordered band matrix.
VMatrix theBand
Band part.
VMatrix bandOfAVAT(const VMatrix &anArray, const VSymMatrix &aSymArray) const
Calculate band part of: 'anArray * aSymArray * anArray.T'.
Simple Vector based on std::vector<double>
TMatrixDSym getBlockMatrix(const std::vector< unsigned int > anIndex) const
Retrieve symmetric block matrix.
unsigned int numSize
Matrix size.
VVector solveBand(const VVector &aRightHandSide) const
Solve for band part.
void solveAndInvertBorderedBand(const VVector &aRightHandSide, VVector &aSolution)
Solve linear equation system, partially calculate inverse.
unsigned int numBand
Band width.