nifty8.operators.adder module#
- class Adder(a, neg=False, domain=None)[source]#
Bases:
Operator
Adds a fixed field.
- Parameters:
a (
nifty8.field.Field
ornifty8.multi_field.MultiField
or Scalar) – The field by which the input is shifted.
- apply(x)[source]#
Applies the operator to a Field, MultiField or Linearization.
- Parameters:
x (
nifty8.field.Field
,nifty8.multi_field.MultiField
,) – ornifty8.linearization.Linearization
Input on which the operator shall act. Needs to be defined ondomain
. If x`is a :class:`nifty8.linearization.Linearization, apply returns a newnifty8.linearization.Linearization
contining the result of the operator application as well as its Jacobian, evaluated at x.