mrpro.operators.Functional
- class mrpro.operators.Functional[source]
Bases:
Operator
[Tensor
,tuple
[Tensor
]]Functional Base Class.
- __call__(*args: Unpack) Tout [source]
Apply the forward operator.
For more information, see
forward
.
- __rmul__(scalar: Tensor | complex) Functional [source]
Multiply functional with scalar.
- __add__(other: Operator[Unpack, Tout]) Operator[Unpack, Tout] [source]
- __add__(other: Tensor) Operator[Unpack, tuple[Unpack]]
Operator addition.
Returns
lambda x: self(x) + other(x)
if other is a operator,lambda x: self(x) + other*x
if other is a tensor
- __matmul__(other: Operator[Unpack, tuple[Unpack]]) Operator[Unpack, Tout] [source]
Operator composition.
Returns
lambda x: self(other(x))