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

MAINT: A few updates to the array_api #20066

Merged
merged 23 commits into from
Nov 12, 2021
Merged

Commits on Oct 1, 2021

  1. Configuration menu
    Copy the full SHA
    48005c1 View commit details
    Browse the repository at this point in the history

Commits on Oct 7, 2021

  1. Restrict multidimensional indexing in the array API namespace

    The spec has recently been updated to only require multiaxis (i.e., tuple)
    indices in the case where every axis is indexed, meaning there are either as
    many indices as axes or the index has an ellipsis.
    asmeurer committed Oct 7, 2021
    Configuration menu
    Copy the full SHA
    9af4814 View commit details
    Browse the repository at this point in the history

Commits on Oct 19, 2021

  1. Fix type promotion for numpy.array_api.where

    where does value-based promotion for 0-dimensional arrays, so we use the same
    trick as in the Array operators to avoid this.
    asmeurer committed Oct 19, 2021
    Configuration menu
    Copy the full SHA
    cb0b9c6 View commit details
    Browse the repository at this point in the history

Commits on Oct 20, 2021

  1. Print empty array_api arrays using empty()

    Printing behavior isn't required by the spec. This is just to make things
    easier to understand, especially with the array API test suite.
    asmeurer committed Oct 20, 2021
    Configuration menu
    Copy the full SHA
    7da7a99 View commit details
    Browse the repository at this point in the history

Commits on Oct 22, 2021

  1. Configuration menu
    Copy the full SHA
    0169af7 View commit details
    Browse the repository at this point in the history

Commits on Nov 5, 2021

  1. Configuration menu
    Copy the full SHA
    e0589fd View commit details
    Browse the repository at this point in the history
  2. Remove DLPack support from numpy.array_api.asarray()

    from_dlpack() should be used to create arrays using DLPack.
    asmeurer committed Nov 5, 2021
    Configuration menu
    Copy the full SHA
    21faf34 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    d0f591d View commit details
    Browse the repository at this point in the history

Commits on Nov 8, 2021

  1. Configuration menu
    Copy the full SHA
    17d7886 View commit details
    Browse the repository at this point in the history
  2. Update the unique_* functions in numpy.array_api

    unique() in the array API was replaced with three separate functions,
    unique_all(), unique_inverse(), and unique_values(), in order to avoid
    polymorphic return types.
    
    Additionally, it should be noted that these functions to not currently conform
    to the spec with respect to NaN behavior. The spec requires multiple NaNs to
    be returned, but np.unique() returns a single NaN. Since this is currently an
    open issue in NumPy to possibly revert, I have not yet worked around this. See
    numpy#20326.
    asmeurer committed Nov 8, 2021
    Configuration menu
    Copy the full SHA
    7d9edf3 View commit details
    Browse the repository at this point in the history
  3. Add the stream argument to the array API to_device method

    This does nothing in NumPy, and is just present so that the signature is valid
    according to the spec.
    asmeurer committed Nov 8, 2021
    Configuration menu
    Copy the full SHA
    cb335d2 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    5cae94d View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    f6053aa View commit details
    Browse the repository at this point in the history
  6. Remove some unused imports

    asmeurer committed Nov 8, 2021
    Configuration menu
    Copy the full SHA
    680e0a4 View commit details
    Browse the repository at this point in the history

Commits on Nov 9, 2021

  1. Update the array_api indexing restrictions

    The "multiaxis indexing must index every axis explicitly or use an ellipsis"
    was supposed to include any type of index, not just tuple indices.
    asmeurer committed Nov 9, 2021
    Configuration menu
    Copy the full SHA
    49a3cc9 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    475b01d View commit details
    Browse the repository at this point in the history

Commits on Nov 10, 2021

  1. Use a simpler type annotation for the array API to_device method

    Co-authored-by: Bas van Beek <43369155+BvB93@users.noreply.github.com>
    asmeurer and BvB93 committed Nov 10, 2021
    Configuration menu
    Copy the full SHA
    6352d11 View commit details
    Browse the repository at this point in the history
  2. Fix a typo

    asmeurer committed Nov 10, 2021
    Configuration menu
    Copy the full SHA
    b7bf06e View commit details
    Browse the repository at this point in the history
  3. Fix a test failure in the array_api submodule

    The array_api cannot use the NumPy testing functions because array_api arrays
    do not mix with NumPy arrays, and also NumPy testing functions may use APIs
    that aren't supported in the array API.
    asmeurer committed Nov 10, 2021
    Configuration menu
    Copy the full SHA
    61bc679 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    f72ed85 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    09aa2b5 View commit details
    Browse the repository at this point in the history

Commits on Nov 11, 2021

  1. Configuration menu
    Copy the full SHA
    580a616 View commit details
    Browse the repository at this point in the history

Commits on Nov 12, 2021

  1. Configuration menu
    Copy the full SHA
    b2af8e9 View commit details
    Browse the repository at this point in the history