You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Comparison operators should be defined for arrays having any data type.
Is that right? I don't think operator.{lt, gt, le, ge} should be defined for anything but real-valued datatypes. In particular, defining them for bool is weird and for complex* makes less sense (see, e.g., https://math.stackexchange.com/a/311341).
In addition, numpy.array_api doesn't support this either:
In https://data-apis.org/array-api/latest/API_specification/array_object.html#comparison-operators, it is stated:
Is that right? I don't think
operator.{lt, gt, le, ge}
should be defined for anything but real-valued datatypes. In particular, defining them forbool
is weird and forcomplex*
makes less sense (see, e.g., https://math.stackexchange.com/a/311341).In addition,
numpy.array_api
doesn't support this either:Note also that other operators state the datatypes for which there's actually a valid implementation.
The text was updated successfully, but these errors were encountered: