greater_equal¶
- greater_equal(x1: array | int | float, x2: array | int | float, /) array¶
Computes the truth value of
x1_i >= x2_ifor each elementx1_iof the input arrayx1with the respective elementx2_iof the input arrayx2.- Parameters:
x1 (Union[array, int, float]) – first input array. Should have a real-valued data type.
x2 (Union[array, int, float]) – second input array. Must be compatible with
x1(see Broadcasting). Should have a real-valued data type.
- Returns:
out (array) – an array containing the element-wise results. The returned array must have a data type of
bool.
Notes
At least one of
x1orx2must be an array.Comparison of arrays without a corresponding promotable data type (see Type Promotion Rules) is undefined and thus implementation-dependent.
For backward compatibility, conforming implementations may support complex numbers; however, inequality comparison of complex numbers is unspecified and thus implementation-dependent (see Complex Number Ordering).
Changed in version 2024.12: Cross-kind comparisons are explicitly left unspecified.
Changed in version 2024.12: Added scalar argument support.