23 VVector(
const unsigned int nRows = 0);
26 void resize(
const unsigned int nRows);
30 inline double operator()(
unsigned int i)
const;
43 VMatrix(
const unsigned int nRows = 0,
const unsigned int nCols = 0);
46 void resize(
const unsigned int nRows,
const unsigned int nCols);
48 inline double &
operator()(
unsigned int i,
unsigned int j);
49 inline double operator()(
unsigned int i,
unsigned int j)
const;
68 void resize(
const unsigned int nRows);
70 inline double &
operator()(
unsigned int i,
unsigned int j);
71 inline double operator()(
unsigned int i,
unsigned int j)
const;
104 return theVec[(iRow * iRow + iRow) / 2 + iCol];
109 unsigned int iCol)
const {
110 return theVec[(iRow * iRow + iRow) / 2 + iCol];
VVector getVec(unsigned int len, unsigned int start=0) const
Get part of vector.
void print() const
Print matrix.
tuple start
Check for commandline option errors.
unsigned int getNumRows() const
Get number of rows.
double & operator()(unsigned int i, unsigned int j)
access element (i,j)
VVector operator*(const VVector &aVector) const
Multiplication Matrix*Vector.
Simple Matrix based on std::vector<double>
VVector(const unsigned int nRows=0)
VVector operator*(const VVector &aVector) const
Multiplication SymMatrix*Vector.
unsigned int invert()
Matrix inversion.
void print() const
Print vector.
void putVec(const VVector &aVector, unsigned int start=0)
Put part of vector.
void resize(const unsigned int nRows, const unsigned int nCols)
Resize Matrix.
unsigned int numCols
Number of columns.
VVector operator-(const VVector &aVector) const
Subtraction Vector-Vector.
unsigned int getNumRows() const
Get number of rows.
void resize(const unsigned int nRows)
Resize symmetric matrix.
double & operator()(unsigned int i, unsigned int j)
access element (i,j) assuming i>=j
VMatrix transpose() const
Get transposed matrix.
VSymMatrix(const unsigned int nRows=0)
void resize(const unsigned int nRows)
Resize vector.
unsigned int numRows
Number of rows.
Simple symmetric Matrix based on std::vector<double>
double & operator()(unsigned int i)
access element (i)
VMatrix & operator=(const VMatrix &aMatrix)
Assignment Matrix=Matrix.
unsigned int numRows
Number of rows.
VVector & operator=(const VVector &aVector)
Assignment Vector=Vector.
void print() const
Print matrix.
std::vector< double > theVec
Data (symmetric storage)
unsigned int getNumCols() const
Get number of columns.
Simple Vector based on std::vector<double>
unsigned int getNumRows() const
Get number of rows (= number of colums).
std::vector< double > theVec
Data.
std::vector< double > theVec
Data.
VMatrix(const unsigned int nRows=0, const unsigned int nCols=0)
unsigned int numRows
Number of rows.
VMatrix operator+(const VMatrix &aMatrix) const
Addition Matrix+Matrix.
VSymMatrix operator-(const VMatrix &aMatrix) const
Subtraction SymMatrix-(sym)Matrix.