Node

Constructor

Node(val)

Primary data structure for reverse mode automatic differentiation.

Dunder Methods

Node.__add__(other)

Return the sum of self and other.

Node.__radd__(other)

Return the sum of two numbers, when the left operand is not a Node

Node.__sub__(other)

Returns the difference between self and other.

Node.__rsub__(other)

Return the difference between two numbers, when the left operand is not Node

Node.__mul__(other)

Return the product of self and other.

Node.__rmul__(other)

Return the product of two numbers, when the left operand is not a Node

Node.__truediv__(other)

Return the quotient of self and other.

Node.__rtruediv__(other)

Return the quotient of two numbers, when the left operand is not a Node.

Node.__pow__(other)

Return self to the power of other.

Node.__rpow__(other)

Return other to the power of self if other is not a Node.

Node.__neg__()

Return negation of self.

Node.__lt__(other)

Return element-wise (value and derivative) less than comparison of self and other.

Node.__gt__(other)

Return element-wise (value and derivative) greater than comparison of self and other.

Node.__le__(other)

Return element-wise (value and derivative) less than or equal comparison of self and other.

Node.__ge__(other)

Return element-wise (value and derivative) greater than or equal comparison of self and other.

Node.__eq__(other)

Return element-wise (value and derivative vector) equality comparison of self and other.

Node.__ne__(other)

Return element-wise (value and derivative vector) inequality comparison of self and other.