Subtract

class aixd.sampler.operators.Subtract(arg1: Arithmetic, arg2: Arithmetic)[source]

Bases: Arithmetic

Substract operation using operators. Only operates when the evaluate method is called.

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

evaluate

Evaluate the operator with given data.

Inherited Methods

is_differentiable

Check if the operator is differentiable.

print_all

Print the operator and all its arguments.