nifty8.operators.domain_tuple_field_inserter module#
- class DomainTupleFieldInserter(target, space, index)[source]#
Bases:
LinearOperator
Writes the content of a
Field
into one slice of aDomainTuple
.- Parameters:
target (Domain, tuple of Domain or DomainTuple)
space (int) – The index of the sub-domain which is inserted.
index (tuple) – Slice in new sub-domain in which the input field shall be written into.
- 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: