autodiff.reverse.Node.__rmul__

Node.__rmul__(other)

Return the product 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(50.4)
>>> -3 * ad.Node.constant(42)
Node(-126)