Geophysical Inversion and Modelling Library v1.5.4
Loading...
Searching...
No Matches
GIMLI::H2SparseMapMatrix Class Reference

#include <blockmatrix.h>

+ Inheritance diagram for GIMLI::H2SparseMapMatrix:
+ Collaboration diagram for GIMLI::H2SparseMapMatrix:

Public Member Functions

virtual Index rows () const
 
virtual Index cols () const
 
virtual void clear ()
 
virtual RVector mult (const RVector &a) const
 
virtual RVector transMult (const RVector &a) const
 
const RSparseMapMatrixH1 () const
 
const RSparseMapMatrixH2 () const
 
RSparseMapMatrixH1 ()
 
RSparseMapMatrixH2 ()
 
- 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 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

RSparseMapMatrix H1_
 create inplace (or better hold references of it?)
 
RSparseMapMatrix H2_
 
- Protected Attributes inherited from GIMLI::MatrixBase
bool verbose_
 

Detailed Description

Simple example for tutorial purposes.

Block Matrix consisting of two horizontally pasted sparse map matrices.

Member Function Documentation

◆ clear()

virtual void GIMLI::H2SparseMapMatrix::clear ( )
inlinevirtual

Clear the data, set size to zero and frees memory.

Reimplemented from GIMLI::MatrixBase.

References H1_.

◆ cols()

virtual Index GIMLI::H2SparseMapMatrix::cols ( ) const
inlinevirtual

Return number of colums

Reimplemented from GIMLI::MatrixBase.

References H1_.

Referenced by mult().

◆ H1()

const RSparseMapMatrix & GIMLI::H2SparseMapMatrix::H1 ( ) const
inline

Return references to the 2 matriced (const and non-const, why?).

References H1_.

◆ mult()

virtual RVector GIMLI::H2SparseMapMatrix::mult ( const RVector & a) const
inlinevirtual

Return this * a .

Reimplemented from GIMLI::MatrixBase.

References cols(), and H1_.

◆ rows()

virtual Index GIMLI::H2SparseMapMatrix::rows ( ) const
inlinevirtual

Return number of cols

Reimplemented from GIMLI::MatrixBase.

References H1_.

◆ transMult()

virtual RVector GIMLI::H2SparseMapMatrix::transMult ( const RVector & a) const
inlinevirtual

Return this.T * a = (a.T * this).T .

Reimplemented from GIMLI::MatrixBase.

References H1_.