GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — ENH: Add array API standard v2022.12 support to numpy.array_api by charris · Pull Request #23955 · numpy/numpy

Conversation

@charris

@charris charris commented Jun 15, 2023

Copy link
Copy Markdown
Member

Backport of #23881.

Fixes #23880

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
asmeurer and others added 15 commits June 15, 2023 08:09
@asmeurer @charris
Bump array API version in numpy.array_api
3196b22
@asmeurer @charris
Add complex dtypes to numpy.array_api result_type
7760e8e
@asmeurer @charris
Add complex dtypes to the array_api top-level namespace
b2ca2c5
@asmeurer @charris
Update numpy.array_api magic methods for complex numbers
b48d390
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 @charris
Add conj, imag, and real functions to numpy.array_api
d6bd130
@asmeurer @charris
Update numpy.array_api sum() and prod() to handle complex dtypes
69775d1
@asmeurer @charris
Add isdtype() to numpy.array_api
3dd0aec
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 @charris
Add a release notes entry
cc94010
@asmeurer @charris
Update dtype strictness for complex numbers in array_api elementwise …
1fe2771
…functions
@asmeurer @charris
Update dtype strictness for array_api statistical functions
235cf14
@asmeurer @charris
Update dtype strictness in array_api searching and sorting functions
224f708
@asmeurer @charris
Add the dtype argument to numpy.array_api.linalg.trace
b9b62d2
@asmeurer @charris
Add dtype to the output of array_api finfo and iinfo
7a58c03
@asmeurer @charris
Add a note that we are skipping numpy.array_api.fft for now
1ee9a58
@asmeurer @BvB93 @charris
Fix __complex__ type annotation
52b8163
Co-authored-by: Bas van Beek <[email protected]>
@charris charris added 01 - Enhancement 08 - Backport Used to tag backport PRs component: numpy.array_api labels Jun 15, 2023
@charris charris added this to the 1.25.0 release milestone Jun 15, 2023
@asmeurer

asmeurer commented Jun 15, 2023

Copy link
Copy Markdown
Member

Can you also backport #23789

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@charris

charris commented Jun 15, 2023

Copy link
Copy Markdown
Member Author

Can you also backport #23789

It is already backported, I'm just waiting for cirrus arm64 runs to get back to working before merging.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@charris
charris merged commit 42ef942 into numpy:maintenance/1.25.x Jun 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

01 - Enhancement 08 - Backport Used to tag backport PRs component: numpy.array_api

Projects

None yet

Milestone

1.25.0 release

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@charris @asmeurer
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.