__ne__¶
- array.__ne__(other: int | float | bool | 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
.- Parameters:
self (array) – array instance. May have any data type.
other (Union[int, float, bool, array]) – other array. Must be compatible with
self
(see Broadcasting). May have any data type.
- Returns:
out (array) – an array containing the element-wise results. The returned array must have a data type of
bool
(i.e., must be a boolean array).
Notes
Note
Element-wise results, including special cases, must equal the results returned by the equivalent element-wise function
not_equal()
.Changed in version 2022.12: Added complex data type support.