pg.scalars.BinaryOp#

Accessible via pg.scalars.BinaryOp.

class BinaryOp(x, y)[source]#

Bases: pg.evolution.Scalar

Binary operation for computing scheduled value.

Methods:

call(step)

Implementation.

operate(x, y)

Implementation of the operation on two computed value.

call(step)[source]#

Implementation. Subclass should override this method.

Return type:

Union[int, float]

abstract operate(x, y)[source]#

Implementation of the operation on two computed value.

Return type:

Union[int, float]