autodiff.Dual.__ge__¶
- Dual.__ge__(other)¶
Return element-wise (value and derivative vector) greater than or equal to comparison of
self
andother
.- 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(5, [2]) >= ad.Dual(5, [1]) (True, array([True]))
Two dual numbers (multivariate):
>>> ad.Dual(5, [4, 2]) >= ad.Dual(5, [1, 2]) (True, array([True, True]))