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.

__init__(domain, indices)[source]#
__repr__()[source]#

Return repr(self).

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 application

    • ADJOINT_TIMES: adjoint application

    • INVERSE_TIMES: inverse application

    • ADJOINT_INVERSE_TIMES or INVERSE_ADJOINT_TIMES: adjoint inverse application

Returns:

The processed Field defined on the Operator’s target or domain, depending on mode.

Return type:

nifty8.field.Field