nifty7.operators.adder module#

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

Bases: Operator

Adds a fixed field.

Parameters:

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

apply(x)[source]#

Applies the operator to a Field or MultiField.

Parameters:

x (Field or MultiField) – Input on which the operator shall act. Needs to be defined on domain.