KASKADE 7 development version
Public Member Functions | List of all members
Kaskade::SparseLinearSystem Class Referenceabstract

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

#include <linearsystem.hh>

Detailed Description

Abstract base class for a sparse linear system.

Definition at line 29 of file linearsystem.hh.

Inheritance diagram for Kaskade::SparseLinearSystem:
Kaskade::Bridge::KaskadeLinearization< Functional > Kaskade::SimpleSparseLinearSystem

Public Member Functions

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

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

◆ 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.

Referenced by Kaskade::DirectLinearSolver< Scalar, SparseInt >::solve(), and Kaskade::Bridge::DirectInnerSolver< DirectSolver >::solveAdjAndNormal().

◆ getMatrixBlocks()

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

◆ 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.

Referenced by Kaskade::DirectLinearSolver< Scalar, SparseInt >::resolve().

◆ getRHSBlocks()

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

◆ getValue()

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

◆ nColBlocks()

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

◆ nRowBlocks()

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

◆ 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.

Referenced by Kaskade::Bridge::DirectInnerSolver< DirectSolver >::solveAdjAndNormal().


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