Arithmetic

class aixd.sampler.operators.Arithmetic(*args: Arithmetic)[source]

Bases: Operator

A base class for defining arithmetic operations on objects that do not yet contain actual data. The operations are executed only when the evaluate method is called with data.

Raises: ValueError: If an argument is not of type float, int, str, Operator, or DataObject.

Parameters:

*args (list of float, int, str, Operator, or DataObject.) – The arguments to initialize the operator.

Methods

is_differentiable

Check if the operator is differentiable.

Inherited Methods

evaluate

Evaluate the operator with given data.

print_all

Print the operator and all its arguments.