-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docs: add note that cross-kind comparisons are undefined #822
base: main
Are you sure you want to change the base?
Conversation
@@ -772,6 +784,9 @@ def __le__(self: array, other: Union[int, float, array], /) -> array: | |||
|
|||
.. note:: | |||
Element-wise results must equal the results returned by the equivalent element-wise function :func:`~array_api.less_equal`. | |||
|
|||
.. note:: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This comment should be added to __lt__
below.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The language looks okay to me. Left comments for a small grammar correction and the need to add a missing note. Once addressed, LGTM.
Co-authored-by: Athan <kgryte@gmail.com>
Done |
Does the language here look OK? Should we add anything along the lines of "comparisons with promotable types should promote first" (so that the result is numerically correct)?
Fixes #819.