G+Smo  24.08.0
Geometry + Simulation Modules
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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
< gsLinearOperator
Ptr
 Shared pointer for gsLinearOperator.
 
typedef memory::unique_ptr
< gsLinearOperator
uPtr
 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 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< T > Identity (const index_t dim)
 Identity operator.
 

Member Function Documentation