autodiff.reverse.Node.__radd__

Node.__radd__(other)

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

Parameters
selfNode
otherint, float
Returns
outNode

Examples

Scalar and Node:

>>> 1.2 + ad.Node(42)
Node(43.2)
>>> -3.6 + ad.Node.constant(42)
Node(38.4)