![]() |
G+Smo
25.01.0
Geometry + Simulation Modules
|
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 | |
| 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. | |
|
inlinevirtual |
apply the operator on the input vector and store the result in x
| input | Input vector |
| x | result vector |
Implements gsLinearOperator< T >.