nifty8.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.
- Parameters:
domain (MultiDomain) – Domain of the operator
Notes
This operator works only on MultiFields that have the same dtype for all entries.
- 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: