autodiff.Dual.__rmul__¶
- Dual.__rmul__(other)¶
Return the product of two numbers, when the left operand is not a Dual number.
- Parameters
- selfDual
- otherint, float
- Returns
- outDual
Examples
Scalar and dual number (univariate):
>>> 1.2 * ad.Dual(42) Dual(50.4, array([1.2]))
Scalar and dual number (multivariate):
>>> -3 * ad.Dual(42, [1, 2]) Dual(-126, array([-3., -6.]))