G+Smo  24.08.0
Geometry + Simulation Modules
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
gsSumOp< T > Class Template Reference

Detailed Description

template<typename T>
class gismo::gsSumOp< T >

Class for representing the sum of objects of type gsLinearOperator as gsLinearOperator.

+ Inheritance diagram for gsSumOp< T >:
+ Collaboration diagram for gsSumOp< T >:

Public Types

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

Public Member Functions

void addOperator (BasePtr op)
 Add another operator.
 
void apply (const gsMatrix< T > &input, gsMatrix< T > &x) const
 apply the operator on the input vector and store the result in x More...
 
index_t cols () const
 Returns the number of columns of the operator.
 
const std::vector< BasePtr > & getOps () const
 Return a vector of shared pointers to all operators.
 
 gsSumOp ()
 Empty constructor. To be filled with addOperator()
 
 gsSumOp (std::vector< BasePtr > ops)
 Constructor taking a vector of Linear Operators.
 
 gsSumOp (BasePtr op0, BasePtr op1)
 Constructor taking two Linear Operators.
 
 gsSumOp (BasePtr op0, BasePtr op1, BasePtr op2)
 Constructor taking three Linear Operators.
 
index_t rows () const
 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.
 
static uPtr make ()
 Make command returning a smart pointer.
 
static uPtr make (std::vector< BasePtr > ops)
 Make command returning a smart pointer.
 
static uPtr make (BasePtr op0, BasePtr op1)
 Make command returning a smart pointer.
 
static uPtr make (BasePtr op0, BasePtr op1, BasePtr op2)
 Make command returning a smart pointer.
 

Member Function Documentation

void apply ( const gsMatrix< T > &  input,
gsMatrix< T > &  x 
) const
inlinevirtual

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

Parameters
inputInput vector
xresult vector

Implements gsLinearOperator< T >.