mrpro.operators.MultiIdentityOp
- class mrpro.operators.MultiIdentityOp[source]
Bases:
EndomorphOperator
The Identity Operator.
An endomorph Operator that returns multiple inputs unchanged.
- adjoint(*x: Tensor) tuple[Tensor, ...] [source]
Adjoint Identity.
- Parameters:
x (
Tensor
) – input tensor- Returns:
the input tensor
- forward(*x: Tensor) tuple[Tensor, ...] [source]
Identity of input.
- Parameters:
x (
Tensor
) – input tensor- Returns:
the input tensor
- __add__(other: Operator[Unpack[Tin], Tout]) Operator[Unpack[Tin], Tout] [source]
- __add__(other: Tensor) Operator[Unpack[Tin], tuple[Unpack[Tin]]]
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: EndomorphOperator) EndomorphOperator [source]
- __matmul__(other: Operator[Unpack[Tin], Tout]) Operator[Unpack[Tin], Tout]
Operator composition.
- __mul__(other: Tensor | complex) Operator[Unpack[Tin], Tout] [source]
Operator multiplication with tensor.
Returns
lambda x: self(x*other)
- __radd__(other: Tensor) Operator[Unpack[Tin], tuple[Unpack[Tin]]] [source]
Operator right addition.
Returns
lambda x: other*x + self(x)