G+Smo  25.01.0
Geometry + Simulation Modules
 
Loading...
Searching...
No Matches
gsLinearOperator< T > Class Template Referenceabstract

Detailed Description

template<class T>
class gismo::gsLinearOperator< T >

Simple abstract class for discrete operators.

Simple abstract class for discrete operators. The derived classes have to contain the functions: apply(), cols(), and rows().

+ Inheritance diagram for gsLinearOperator< T >:

Public Types

typedef memory::shared_ptr< gsLinearOperatorPtr
 Shared pointer for gsLinearOperator.
 
typedef memory::unique_ptr< gsLinearOperatoruPtr
 Unique pointer for gsLinearOperator.
 

Public Member Functions

virtual void apply (const gsMatrix< T > &input, gsMatrix< T > &x) const =0
 apply the operator on the input vector and store the result in x
 
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< T > Identity (const index_t dim)
 Identity operator.
 

Member Function Documentation

◆ apply()

template<class T >
virtual void apply ( const gsMatrix< T > &  input,
gsMatrix< T > &  x 
) const
pure virtual