nifty7.operators.multifield2vector module#

class Multifield2Vector(domain)[source]#

Bases: LinearOperator

Flatten a MultiField and return a Field with unstructured domain and the same number of degrees of freedom.


domain (MultiDomain) – Domain of the operator


Currently only works with fields that are real-valued.

apply(x, mode)[source]#

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

  • 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


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

Return type: