Skip to content
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

ENH: Add array API standard v2022.12 support to numpy.array_api #23881

Merged
merged 15 commits into from
Jun 14, 2023

Commits on Jun 5, 2023

  1. Configuration menu
    Copy the full SHA
    80e64de View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    33064b8 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    bd86d17 View commit details
    Browse the repository at this point in the history
  4. Update numpy.array_api magic methods for complex numbers

    Updates from the v2022.12 version of the spec:
    
    - Add __complex__.
    - __float__, __int__, and __bool__ are now more lenient in what dtypes they
      can operate on.
    - Support complex scalars and dtypes in all operators (except those that
      should not operate on complex numbers).
    - Disallow integer scalars that are out of the bounds of the array dtype.
    - Update the tests accordingly.
    asmeurer committed Jun 5, 2023
    Configuration menu
    Copy the full SHA
    8b63fc2 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    103bca5 View commit details
    Browse the repository at this point in the history

Commits on Jun 6, 2023

  1. Configuration menu
    Copy the full SHA
    e023bc6 View commit details
    Browse the repository at this point in the history
  2. Add isdtype() to numpy.array_api

    This is a new function in the v2022.12 version of the array API standard which
    is used for determining if a given dtype is part of a set of given dtype
    categories. This will also eventually be added to the main NumPy namespace,
    but for now only exists in numpy.array_api as a purely strict version.
    asmeurer committed Jun 6, 2023
    Configuration menu
    Copy the full SHA
    173fbc7 View commit details
    Browse the repository at this point in the history
  3. Add a release notes entry

    asmeurer committed Jun 6, 2023
    Configuration menu
    Copy the full SHA
    ca1ef2b View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    c866ef1 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    315b0d0 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    837b1af View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    4e2a03a View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    00ca841 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    ae528a0 View commit details
    Browse the repository at this point in the history
  10. Fix __complex__ type annotation

    Co-authored-by: Bas van Beek <43369155+BvB93@users.noreply.github.com>
    asmeurer and BvB93 committed Jun 6, 2023
    Configuration menu
    Copy the full SHA
    91153af View commit details
    Browse the repository at this point in the history