G+Smo
25.01.0
Geometry + Simulation Modules
|
Simple abstract class for discrete operators.
Simple abstract class for discrete operators. The derived classes have to contain the functions: apply(), cols(), and rows().
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 | |
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. | |
|
pure virtual |
apply the operator on the input vector and store the result in x
input | Input vector |
x | result vector |
Implemented in gsIterativeSolverOp< SolverType >, gsBlockOp< T >, gsAdditiveOp< T >, gsKroneckerOp< T >, gsScaledOp< T >, gsIdentityOp< T >, gsLinearLambdaOp< T, L >, gsMatrixOp< MatrixType >, gsSolverOp< SolverType >, gsPreconditionerOp< T >, gsProductOp< T >, gsSumOp< T >, and gsPreconditionerFromOp< T >.