KASKADE 7 development version
Loading...
Searching...
No Matches
Kaskade::SparseLinearSystem Class Referenceabstract

Abstract base class for a sparse linear system. More...

#include <linearsystem.hh>

Inheritance diagram for Kaskade::SparseLinearSystem:
Kaskade::SimpleSparseLinearSystem

Public Member Functions

virtual void getMatrix (MatrixAsTriplet< double > &mat) const
 Return the matrix of the linear system in triplet format.
virtual void getRHS (std::vector< double > &rhs) const
 Return the right hand side of the linear system.
virtual int size () const
 Return the number of variables of the linear system.
virtual int rows (int rbegin, int rend) const =0
virtual int cols (int colbegin, int colend) const =0
virtual void getMatrixBlocks (MatrixAsTriplet< double > &mat, int rbegin, int rend, int colbegin, int colend) const =0
 Return matrix blocks of the linear system in triplet format.
virtual double getValue () const =0
 value of function
virtual void getRHSBlocks (std::vector< double > &rhs, int rbegin, int rend) const =0
 Return components of the right hand side of the linear system.
virtual int nColBlocks () const =0
 number of column blocks
virtual int nRowBlocks () const =0
 number of row blocks
virtual ~SparseLinearSystem ()

Detailed Description

Abstract base class for a sparse linear system.

Definition at line 29 of file linearsystem.hh.

Constructor & Destructor Documentation

◆ ~SparseLinearSystem()

virtual Kaskade::SparseLinearSystem::~SparseLinearSystem ( )
inlinevirtual

Definition at line 59 of file linearsystem.hh.

Member Function Documentation

◆ cols()

virtual int Kaskade::SparseLinearSystem::cols ( int colbegin,
int colend ) const
pure virtual

Implemented in Kaskade::SimpleSparseLinearSystem.

Referenced by size().

◆ getMatrix()

virtual void Kaskade::SparseLinearSystem::getMatrix ( MatrixAsTriplet< double > & mat) const
inlinevirtual

Return the matrix of the linear system in triplet format.

Definition at line 33 of file linearsystem.hh.

◆ getMatrixBlocks()

virtual void Kaskade::SparseLinearSystem::getMatrixBlocks ( MatrixAsTriplet< double > & mat,
int rbegin,
int rend,
int colbegin,
int colend ) const
pure virtual

Return matrix blocks of the linear system in triplet format.

Implemented in Kaskade::SimpleSparseLinearSystem.

Referenced by getMatrix().

◆ getRHS()

virtual void Kaskade::SparseLinearSystem::getRHS ( std::vector< double > & rhs) const
inlinevirtual

Return the right hand side of the linear system.

Definition at line 36 of file linearsystem.hh.

◆ getRHSBlocks()

virtual void Kaskade::SparseLinearSystem::getRHSBlocks ( std::vector< double > & rhs,
int rbegin,
int rend ) const
pure virtual

Return components of the right hand side of the linear system.

Implemented in Kaskade::SimpleSparseLinearSystem.

Referenced by getRHS().

◆ getValue()

virtual double Kaskade::SparseLinearSystem::getValue ( ) const
pure virtual

value of function

Implemented in Kaskade::SimpleSparseLinearSystem.

◆ nColBlocks()

virtual int Kaskade::SparseLinearSystem::nColBlocks ( ) const
pure virtual

number of column blocks

Implemented in Kaskade::SimpleSparseLinearSystem.

Referenced by getMatrix(), and size().

◆ nRowBlocks()

virtual int Kaskade::SparseLinearSystem::nRowBlocks ( ) const
pure virtual

number of row blocks

Implemented in Kaskade::SimpleSparseLinearSystem.

Referenced by getMatrix(), and getRHS().

◆ rows()

virtual int Kaskade::SparseLinearSystem::rows ( int rbegin,
int rend ) const
pure virtual

◆ size()

virtual int Kaskade::SparseLinearSystem::size ( ) const
inlinevirtual

Return the number of variables of the linear system.

Definition at line 39 of file linearsystem.hh.


The documentation for this class was generated from the following file: