nifty8.operators.transpose_operator module#
- class TransposeOperator(domain, indices)[source]#
Bases:
LinearOperator
NIFTY base class for linear operators.
The base NIFTY operator class is an abstract class from which other specific operator subclasses are derived.
- Variables:
TIMES (int) – Symbolic constant representing normal operator application
ADJOINT_TIMES (int) – Symbolic constant representing adjoint operator application
INVERSE_TIMES (int) – Symbolic constant representing inverse operator application
ADJOINT_INVERSE_TIMES (int) – Symbolic constant representing adjoint inverse operator application
INVERSE_ADJOINT_TIMES (int) – same as ADJOINT_INVERSE_TIMES
Notes
The symbolic constants for the operation modes can be combined by the “bitwise-or” operator “|”, for expressing the capability of the operator by means of a single integer number.
- 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: