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