nifty8.operators.operator_adapter module#
- class OperatorAdapter(op, op_transform, domain_dtype=<class 'float'>)[source]#
Bases:
LinearOperator
Class representing the inverse and/or adjoint of another operator.
Objects of this class are created internally by LinearOperator whenever the inverse and/or adjoint of an already existing operator object is requested via the LinearOperator attributes inverse, adjoint or _flip_modes().
Users should never have to create instances of this class directly.
- Parameters:
op (LinearOperator) – The operator on which the adapter will act
op_transform (int) –
adjoint
inverse
adjoint inverse
- apply(x, mode)[source]#
Applies the Operator to a given x, in a specified mode.
- Parameters:
x (
nifty8.field.Field
) – The input Field, defined on the Operator’s domain or target, depending on mode.mode (int) –
TIMES
: normal applicationADJOINT_TIMES
: adjoint applicationINVERSE_TIMES
: inverse applicationADJOINT_INVERSE_TIMES
orINVERSE_ADJOINT_TIMES
: adjoint inverse application
- Returns:
The processed Field defined on the Operator’s target or domain, depending on mode.
- Return type: