G+Smo
24.08.0
Geometry + Simulation Modules
|
Class for representing the sum of objects of type gsLinearOperator as gsLinearOperator.
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. | |
apply the operator on the input vector and store the result in x
input | Input vector |
x | result vector |
Implements gsLinearOperator< T >.