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