45 VVector(
const unsigned int nRows = 0);
48 void resize(
const unsigned int nRows);
50 VVector getVec(
unsigned int len,
unsigned int start = 0)
const;
53 inline double operator()(
unsigned int i)
const;
66 VMatrix(
const unsigned int nRows = 0,
const unsigned int nCols = 0);
69 void resize(
const unsigned int nRows,
const unsigned int nCols);
72 inline double &
operator()(
unsigned int i,
unsigned int j);
73 inline double operator()(
unsigned int i,
unsigned int j)
const;
92 void resize(
const unsigned int nRows);
95 inline double &
operator()(
unsigned int i,
unsigned int j);
96 inline double operator()(
unsigned int i,
unsigned int j)
const;
129 return theVec[(iRow * iRow + iRow) / 2 + iCol];
134 unsigned int iCol)
const {
135 return theVec[(iRow * iRow + iRow) / 2 + iCol];
Simple Matrix based on std::vector<double>
unsigned int getNumCols() const
Get number of columns.
VMatrix transpose() const
Get transposed matrix.
VVector operator*(const VVector &aVector) const
Multiplication Matrix*Vector.
unsigned int numRows
Number of rows.
unsigned int getNumRows() const
Get number of rows.
void resize(const unsigned int nRows, const unsigned int nCols)
Resize Matrix.
VMatrix operator+(const VMatrix &aMatrix) const
Addition Matrix+Matrix.
unsigned int numCols
Number of columns.
VMatrix & operator=(const VMatrix &aMatrix)
Assignment Matrix=Matrix.
VMatrix(const unsigned int nRows=0, const unsigned int nCols=0)
std::vector< double > theVec
Data.
double & operator()(unsigned int i, unsigned int j)
access element (i,j)
void print() const
Print matrix.
void setZero()
Set content to 0.
Simple symmetric Matrix based on std::vector<double>
VSymMatrix(const unsigned int nRows=0)
VVector operator*(const VVector &aVector) const
Multiplication SymMatrix*Vector.
void print() const
Print matrix.
double & operator()(unsigned int i, unsigned int j)
access element (i,j) assuming i>=j
unsigned int invert()
Matrix inversion.
unsigned int getNumRows() const
Get number of rows (= number of colums).
std::vector< double > theVec
Data (symmetric storage)
unsigned int numRows
Number of rows.
void resize(const unsigned int nRows)
Resize symmetric matrix.
VSymMatrix operator-(const VMatrix &aMatrix) const
Subtraction SymMatrix-(sym)Matrix.
void setZero()
Set content to 0.
Simple Vector based on std::vector<double>
void putVec(const VVector &aVector, unsigned int start=0)
Put part of vector.
std::vector< double > theVec
Data.
VVector getVec(unsigned int len, unsigned int start=0) const
Get part of vector.
VVector operator-(const VVector &aVector) const
Subtraction Vector-Vector.
void setZero()
Set content to 0.
void resize(const unsigned int nRows)
Resize vector.
VVector(const unsigned int nRows=0)
unsigned int numRows
Number of rows.
double & operator()(unsigned int i)
access element (i)
void print() const
Print vector.
VVector & operator=(const VVector &aVector)
Assignment Vector=Vector.
unsigned int getNumRows() const
Get number of rows.
Namespace for the general broken lines package.