IntToDiscreteFieldOperators extension

Operators to perform arithmetic between int values and DiscreteFieldFunctions, with the value as the left operand and the field as the right operand.

on

Operators

operator *(DiscreteFieldFunction field) DiscreteFieldFunction

Available on int, provided by the IntToDiscreteFieldOperators extension

Composes a function that multiplies, point-wise, field's result by this int, using DiscreteFieldFunction.multiplyByValue.
operator +(DiscreteFieldFunction field) DiscreteFieldFunction

Available on int, provided by the IntToDiscreteFieldOperators extension

Composes a function that adds, point-wise, this int to field's result, using DiscreteFieldFunction.addValue.