autodiff.Dual.__gt__

Dual.__gt__(other)

Return element-wise (value and derivative vector) greater than comparison of self and other.

Parameters
selfDual
otherint, float, Dual
Returns
outtuple

Examples

Dual number and scalar:

>>> ad.Dual(42) > 5
(True, array([True]))

Two dual numbers (univariate):

>>> ad.Dual(1, [2]) > ad.Dual(5, [1])
(False, array([True]))

Two dual numbers (multivariate):

>>> ad.Dual(1, [4, 1]) > ad.Dual(5, [1, 2])
(False, array([True, False]))