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

Detailed Description

template<class T>
class gismo::gsScaledOp< T >

Allows an operator to be multiplied with a scalar.

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

Public Types

typedef gsLinearOperator< T >::Ptr BasePtr
 Shared pointer for gsLinearOperator.
 
typedef memory::shared_ptr
< gsScaledOp
Ptr
 Shared pointer for gsScaledOp.
 
typedef memory::unique_ptr
< gsScaledOp
uPtr
 Unique pointer for gsScaledOp.
 

Public Member Functions

virtual 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 in the preconditioner.
 
 gsScaledOp (BasePtr op, T scalar=1)
 Constructor taking a shared pointer to a linear operator and a scalar.
 
index_t rows () const
 Returns the number of rows in the preconditioner.
 
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 (BasePtr op, T scalar=1)
 Make function returning a smart pointer.
 

Member Function Documentation

virtual 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 >.