template<typename T>
class gismo::gsSumOp< T >
Class for representing the sum of objects of type gsLinearOperator as gsLinearOperator.
|
|
typedef memory::shared_ptr< gsSumOp > | Ptr |
| | Shared pointer for gsSumOp.
|
| |
|
typedef memory::unique_ptr< gsSumOp > | uPtr |
| | Unique pointer for gsSumOp.
|
| |
|
|
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
|
| |
|
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 (BasePtr op0, BasePtr op1) |
| | Constructor taking two Linear Operators.
|
| |
|
| gsSumOp (BasePtr op0, BasePtr op1, BasePtr op2) |
| | Constructor taking three Linear Operators.
|
| |
|
| gsSumOp (std::vector< BasePtr > ops) |
| | Constructor taking a vector of 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 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 (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.
|
| |
|
static uPtr | make (std::vector< BasePtr > ops) |
| | Make command returning a smart pointer.
|
| |
◆ apply()
apply the operator on the input vector and store the result in x
- Parameters
-
| input | Input vector |
| x | result vector |
Implements gsLinearOperator< T >.