nifty8.operators.adder module#

class Adder(a, neg=False, domain=None)[source]#

Bases: Operator

Adds a fixed field.

Parameters:

a (nifty8.field.Field or nifty8.multi_field.MultiField or Scalar) – The field by which the input is shifted.

__init__(a, neg=False, domain=None)[source]#
apply(x)[source]#

Applies the operator to a Field, MultiField or Linearization.

Parameters:

x (nifty8.field.Field, nifty8.multi_field.MultiField,) – or nifty8.linearization.Linearization Input on which the operator shall act. Needs to be defined on domain. If x`is a :class:`nifty8.linearization.Linearization, apply returns a new nifty8.linearization.Linearization contining the result of the operator application as well as its Jacobian, evaluated at x.