autodiff.reverse.Node.__mul__

Node.__mul__(other)

Return the product of self and other.

Parameters
selfNode
otherint, float, Node
Returns
outNode

Examples

Node and scalar:

>>> ad.Node(42) * 5
Node(210)

Two nodes: >>> ad.Node(5.6) * ad.Node(1) Node(5.6) >>> ad.Node.constant(-9) * ad.Node(4) Node(-36)