nifty.cl.operators.outer_product_operator module#
- class OuterProduct(domain, field, flip=False)[source]#
Bases:
LinearOperatorPerforms the point-wise outer product of two fields.
- Parameters:
domain (DomainTuple, the domain of the input field)
field (
nifty.cl.field.Field)flip (bool) – If False, field becomes the leading and the input field the trailing factor of the outer product, i.e. x -> field * x. If True, the order is reversed, i.e. x -> x * field. Default: False.
---------
- 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: