Geophysical Inversion and Modelling Library
v1.5.2-5-g042d7f36
|
Identity matrix: derived from matrixBase. More...
Public Member Functions | |
IdentityMatrix () | |
IdentityMatrix (Index nrows, double val=1.0) | |
virtual | ~IdentityMatrix () |
virtual Index | rows () const |
virtual Index | cols () const |
virtual RVector | mult (const RVector &a) const |
virtual RVector | transMult (const RVector &a) const |
Public Member Functions inherited from GIMLI::MatrixBase | |
MatrixBase (bool verbose=false) | |
virtual | ~MatrixBase () |
virtual uint | rtti () const |
void | setVerbose (bool verbose) |
bool | verbose () const |
Index | size () const |
virtual void | resize (Index rows, Index cols) |
virtual void | clean () |
virtual void | clear () |
virtual RVector | dot (const RVector &a) const |
virtual CVector | mult (const CVector &a) const |
virtual RVector | mult (const RVector &b, Index startI, Index endI) const |
virtual CVector | mult (const CVector &b, Index startI, Index endI) const |
virtual CVector | transMult (const CVector &a) const |
virtual void | save (const std::string &filename) const |
Protected Attributes | |
Index | nrows_ |
double | val_ |
Protected Attributes inherited from GIMLI::MatrixBase | |
bool | verbose_ |
Identity matrix: derived from matrixBase.
|
inline |
Default constructor (empty matrix).
|
inline |
Constructor with number of rows/colums.
|
inlinevirtual |
Default destructor.
|
inlinevirtual |
Return number of cols
Reimplemented from GIMLI::MatrixBase.
Return this * a
Reimplemented from GIMLI::MatrixBase.
|
inlinevirtual |
Return number of cols
Reimplemented from GIMLI::MatrixBase.
Return this.T * a
Reimplemented from GIMLI::MatrixBase.