45 VVector(
const unsigned int nRows = 0);
48 void resize(
const unsigned int nRows);
49 VVector getVec(
unsigned int len,
unsigned int start = 0)
const;
52 inline double operator()(
unsigned int i)
const;
65 VMatrix(
const unsigned int nRows = 0,
const unsigned int nCols = 0);
68 void resize(
const unsigned int nRows,
const unsigned int nCols);
70 inline double &
operator()(
unsigned int i,
unsigned int j);
71 inline double operator()(
unsigned int i,
unsigned int j)
const;
90 void resize(
const unsigned int nRows);
92 inline double &
operator()(
unsigned int i,
unsigned int j);
93 inline double operator()(
unsigned int i,
unsigned int j)
const;
126 return theVec[(iRow * iRow + iRow) / 2 + iCol];
131 unsigned int iCol)
const {
132 return theVec[(iRow * iRow + iRow) / 2 + iCol];
Simple Matrix based on std::vector<double>
void resize(const unsigned int nRows, const unsigned int nCols)
Resize Matrix.
double & operator()(unsigned int i, unsigned int j)
access element (i,j)
unsigned int numRows
Number of rows.
VMatrix transpose() const
Get transposed matrix.
VMatrix operator+(const VMatrix &aMatrix) const
Addition Matrix+Matrix.
unsigned int numCols
Number of columns.
VMatrix & operator=(const VMatrix &aMatrix)
Assignment Matrix=Matrix.
void print() const
Print matrix.
unsigned int getNumRows() const
Get number of rows.
std::vector< double > theVec
Data.
VVector operator*(const VVector &aVector) const
Multiplication Matrix*Vector.
unsigned int getNumCols() const
Get number of columns.
Simple symmetric Matrix based on std::vector<double>
void resize(const unsigned int nRows)
Resize symmetric matrix.
double & operator()(unsigned int i, unsigned int j)
access element (i,j) assuming i>=j
unsigned int numRows
Number of rows.
VSymMatrix operator-(const VMatrix &aMatrix) const
Subtraction SymMatrix-(sym)Matrix.
unsigned int invert()
Matrix inversion.
void print() const
Print matrix.
unsigned int getNumRows() const
Get number of rows (= number of colums).
std::vector< double > theVec
Data (symmetric storage)
VVector operator*(const VVector &aVector) const
Multiplication SymMatrix*Vector.
Simple Vector based on std::vector<double>
double & operator()(unsigned int i)
access element (i)
void putVec(const VVector &aVector, unsigned int start=0)
Put part of vector.
void resize(const unsigned int nRows)
Resize vector.
unsigned int numRows
Number of rows.
VVector operator-(const VVector &aVector) const
Subtraction Vector-Vector.
VVector & operator=(const VVector &aVector)
Assignment Vector=Vector.
VVector getVec(unsigned int len, unsigned int start=0) const
Get part of vector.
void print() const
Print vector.
unsigned int getNumRows() const
Get number of rows.
std::vector< double > theVec
Data.
Namespace for the general broken lines package.