__gt__¶
- array.__gt__(other: int | float | array, /) array ¶
Computes the truth value of
self_i > other_i
for each element of an array instance with the respective element of the arrayother
.Note
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).
- Parameters:
self (array) – array instance. Should have a real-valued data type.
other (Union[int, float, array]) – other array. Must be compatible with
self
(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
.
Note
Element-wise results must equal the results returned by the equivalent element-wise function
greater()
.