G+Smo  23.12.0
Geometry + Simulation Modules
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
gsIterativeSolverOp< SolverType > Class Template Referenceabstract

Detailed Description

template<class SolverType>
class gismo::gsIterativeSolverOp< SolverType >

This wrapper class allows gsIterativeSolver to be used as gsLinearOperator.

+ Inheritance diagram for gsIterativeSolverOp< SolverType >:
+ Collaboration diagram for gsIterativeSolverOp< SolverType >:

Public Types

typedef memory::shared_ptr
< gsIterativeSolverOp
Ptr
 Shared pointer for gsIterativeSolverOp.
 
typedef memory::unique_ptr
< gsIterativeSolverOp
uPtr
 Unique pointer for gsIterativeSolverOp.
 

Public Member Functions

virtual void apply (const gsMatrix< SolverType::ScalarType > &input, gsMatrix< SolverType::ScalarType > &x) const =0
 apply the operator on the input vector and store the result in x More...
 
virtual index_t cols () const =0
 Returns the number of columns of the operator.
 
virtual index_t rows () const =0
 Returns the number of rows of the operator.
 
virtual void setOptions (const gsOptionList &)
 Set options based on a gsOptionList object.
 

Static Public Member Functions

static gsOptionList defaultOptions ()
 Get the default options as gsOptionList object.
 
static gsIdentityOp
< SolverType::ScalarType > 
Identity (const index_t dim)
 Identity operator.
 

Public Attributes

template<class MatrixType >
 __pad0__: m_solver(matrix
 Constructor taking the underlying matrix/operator and the preconditioner.
 

Member Function Documentation

virtual void apply ( const gsMatrix< SolverType::ScalarType > &  input,
gsMatrix< SolverType::ScalarType > &  x 
) const
pure virtualinherited

apply the operator on the input vector and store the result in x

Parameters
inputInput vector
xresult vector