nifty7.operators.outer_product_operator module

class OuterProduct(domain, field)[source]

Bases: nifty7.operators.linear_operator.LinearOperator

Performs the point-wise outer product of two fields.

Parameters
  • domain (DomainTuple, the domain of the input field) –

  • field (Field) –

  • ---------

apply(x, mode)[source]

Applies the Operator to a given x, in a specified mode.

Parameters
  • x (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

Field