KASKADE 7 development version
Public Member Functions | List of all members
Kaskade::SimpleSparseLinearSystem Class Reference

Simple Implementation for SparseLinearSystem. More...

#include <linearsystem.hh>

Detailed Description

Simple Implementation for SparseLinearSystem.

Definition at line 66 of file linearsystem.hh.

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

Public Member Functions

 SimpleSparseLinearSystem (std::vector< int >const &ridx, std::vector< int >const &cidx, std::vector< double >const &data, std::vector< double >const &rhs_)
 Construction. More...
 
virtual void getMatrixBlocks (MatrixAsTriplet< double > &mat_, int rbegin, int rend, int colbegin, int colend) const
 Return matrix blocks of the linear system in triplet format. More...
 
virtual void getRHSBlocks (std::vector< double > &rhs_, int rbegin, int rend) const
 Return components of the right hand side of the linear system. More...
 
virtual int cols (int colbegin, int colend) const
 
virtual int rows (int rowbegin, int rowend) const
 
virtual double getValue () const
 value of function More...
 
virtual int nColBlocks () const
 number of column blocks More...
 
virtual int nRowBlocks () const
 number of row blocks More...
 
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...
 

Constructor & Destructor Documentation

◆ SimpleSparseLinearSystem()

Kaskade::SimpleSparseLinearSystem::SimpleSparseLinearSystem ( std::vector< int >const &  ridx,
std::vector< int >const &  cidx,
std::vector< double >const &  data,
std::vector< double >const &  rhs_ 
)
inline

Construction.

Definition at line 70 of file linearsystem.hh.

Member Function Documentation

◆ cols()

virtual int Kaskade::SimpleSparseLinearSystem::cols ( int  colbegin,
int  colend 
) const
inlinevirtual

Implements Kaskade::SparseLinearSystem.

Definition at line 81 of file linearsystem.hh.

◆ getMatrix()

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

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::SimpleSparseLinearSystem::getMatrixBlocks ( MatrixAsTriplet< double > &  mat,
int  rbegin,
int  rend,
int  colbegin,
int  colend 
) const
inlinevirtual

Return matrix blocks of the linear system in triplet format.

Implements Kaskade::SparseLinearSystem.

Definition at line 78 of file linearsystem.hh.

◆ getRHS()

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

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::SimpleSparseLinearSystem::getRHSBlocks ( std::vector< double > &  rhs,
int  rbegin,
int  rend 
) const
inlinevirtual

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

Implements Kaskade::SparseLinearSystem.

Definition at line 80 of file linearsystem.hh.

◆ getValue()

virtual double Kaskade::SimpleSparseLinearSystem::getValue ( ) const
inlinevirtual

value of function

Implements Kaskade::SparseLinearSystem.

Definition at line 84 of file linearsystem.hh.

◆ nColBlocks()

virtual int Kaskade::SimpleSparseLinearSystem::nColBlocks ( ) const
inlinevirtual

number of column blocks

Implements Kaskade::SparseLinearSystem.

Definition at line 86 of file linearsystem.hh.

◆ nRowBlocks()

virtual int Kaskade::SimpleSparseLinearSystem::nRowBlocks ( ) const
inlinevirtual

number of row blocks

Implements Kaskade::SparseLinearSystem.

Definition at line 87 of file linearsystem.hh.

◆ rows()

virtual int Kaskade::SimpleSparseLinearSystem::rows ( int  rowbegin,
int  rowend 
) const
inlinevirtual

Implements Kaskade::SparseLinearSystem.

Definition at line 82 of file linearsystem.hh.

◆ size()

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

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: