nifty.cl.operators.mask_operator module#
- class MaskOperator(flags)[source]#
Bases:
LinearOperatorImplementation of a mask response
Takes a field, applies flags and returns the values of the field in a
UnstructuredDomain.- Parameters:
flags (
nifty.cl.field.Field) – Is converted to boolean. Where True, the input field is flagged.
- apply(x, mode)[source]#
Applies the Operator to a given x, in a specified mode.
- Parameters:
x (
nifty.cl.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_TIMESorINVERSE_ADJOINT_TIMES: adjoint inverse application
- Returns:
The processed Field defined on the Operator’s target or domain, depending on mode.
- Return type: