autodiff.reverse.Node.__neg__

Node.__neg__()

Return negation of self.

Parameters
selfNode
Returns
outNode

Examples

>>> -ad.Node(42)
Node(-42)
>>> -ad.Node.constant(42)
Node(-42)