Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Merge pull request #19083 from hameerabbasi/dlpack | Sebastian Berg | 2021-11-09 | 2 | -3/+3 |
|\ | | | | | ENH: Implement the DLPack Array API protocols for ndarray. | ||||
| * | change from_dlpack to _dlpack, remove unused header | mattip | 2021-11-02 | 2 | -3/+3 |
| | | |||||
* | | TST: Add a test for device property in `array_api` namespace (#20271) | Amit Kumar | 2021-11-03 | 1 | -0/+11 |
|/ | |||||
* | Merge pull request #20071 from alessiamarcolini/refactor | Charles Harris | 2021-10-22 | 1 | -15/+0 |
|\ | | | | | MAINT: Remove unused imports and remove duplicated tests | ||||
| * | MAINT: remove unused imports | Alessia Marcolini | 2021-10-08 | 1 | -15/+0 |
| | | |||||
* | | MAINT: Replace the `__array_namespace__` return type with `Any` | Bas van Beek | 2021-10-18 | 1 | -2/+2 |
| | | | | | | | | Replace `object` as it cannot be used for expressing the objects in the array namespace. | ||||
* | | ENH: Change `SupportsDLPack` into a protocol | Bas van Beek | 2021-10-18 | 1 | -1/+3 |
| | | |||||
* | | ENH: Replace `NestedSequence` with a proper nested sequence protocol | Bas van Beek | 2021-10-18 | 1 | -5/+17 |
|/ | |||||
* | Disallow `k=None` for the `eye` function | Bas van Beek | 2021-09-29 | 1 | -1/+1 |
| | |||||
* | MAINT: Import `Array` from the `_array_object` namespace | Bas van Beek | 2021-09-29 | 1 | -1/+1 |
| | | | | Changed as `Array` does not live in the main `np.array_api` namespace | ||||
* | MAINT: Remove the `Sequence` encapsulation from variadic arguments | Bas van Beek | 2021-09-27 | 2 | -3/+3 |
| | |||||
* | MAINT: Add a missing subscription slot to `NestedSequence` | Bas van Beek | 2021-09-27 | 1 | -2/+3 |
| | |||||
* | MAINT: Fix invalid parameter types used in `Dtype` | Bas van Beek | 2021-09-27 | 1 | -6/+21 |
| | |||||
* | ENH: Updates to numpy.array_api (#19937) | Aaron Meurer | 2021-09-25 | 8 | -21/+147 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add __index__ to array_api and update __int__, __bool__, and __float__ The spec specifies that they should only work on arrays with corresponding dtypes. __index__ is new in the spec since the initial PR, and works identically to np.array.__index__. * Add the to_device method to the array_api This method is new since #18585. It does nothing in NumPy since NumPy does not support non-CPU devices. * Update transpose methods in the array_api transpose() was renamed to matrix_transpose() and now operates on stacks of matrices. A function to permute dimensions will be added once it is finalized in the spec. The attribute mT was added and the T attribute was updated to only operate on 2-dimensional arrays as per the spec. * Restrict input dtypes in the array API statistical functions * Add the dtype parameter to the array API sum() and prod() * Add the function permute_dims() to the array_api namespace permute_dims() is the replacement for transpose(), which was split into permute_dims() and matrix_transpose(). * Add tril and triu to the array API namespace * Fix the array_api Array.__repr__ to indent the array properly * Make the Device type in the array_api just accept the string "cpu" | ||||
* | fix unhashable instance and potential exception identified by LGTM | Sista Seetaram | 2021-09-03 | 1 | -1/+1 |
| | |||||
* | fixed unhashable instance and potential exception as listed in LGTM#19077 | Sista Seetaram | 2021-09-03 | 1 | -1/+1 |
| | |||||
* | Remove an unused import | Aaron Meurer | 2021-08-23 | 1 | -2/+0 |
| | |||||
* | Remove Python 3.7 checks from the array API code | Aaron Meurer | 2021-08-23 | 1 | -5/+0 |
| | | | | | NumPy has dropped Python 3.7, so these are no longer necessary (and they didn't completely work anyway). | ||||
* | Add smallest_normal to the array API finfo | Aaron Meurer | 2021-08-12 | 1 | -6/+2 |
| | | | | This was blocked on #18536, which has been merged. | ||||
* | Fix the return annotation for numpy.array_api.Array.__setitem__ | Aaron Meurer | 2021-08-12 | 1 | -1/+1 |
| | |||||
* | Run (selective) black on the array_api submodule | Aaron Meurer | 2021-08-06 | 18 | -390/+1054 |
| | | | | | | I've omitted a few changes from black that messed up the readability of some complicated if statements that were organized logically line-by-line, and some changes that use unnecessary operator spacing. | ||||
* | Update the docstring of numpy.array_api | Aaron Meurer | 2021-08-06 | 1 | -38/+41 |
| | |||||
* | Fix the array API nonzero() function | Aaron Meurer | 2021-08-06 | 1 | -1/+1 |
| | |||||
* | Make the axis argument to squeeze() in the array_api module positional-only | Aaron Meurer | 2021-08-06 | 1 | -1/+1 |
| | | | | See data-apis/array-api#100. | ||||
* | Fix the array API unique() function | Aaron Meurer | 2021-08-06 | 1 | -1/+5 |
| | |||||
* | Fix the array API __len__ method | Aaron Meurer | 2021-08-06 | 1 | -2/+1 |
| | |||||
* | Fix some dictionary key mismatches in the array API tests | Aaron Meurer | 2021-08-06 | 1 | -27/+27 |
| | |||||
* | Add a setup.py to the array_api submodule | Aaron Meurer | 2021-08-05 | 1 | -0/+10 |
| | |||||
* | Give a better error when numpy.array_api is imported in Python 3.7 | Aaron Meurer | 2021-08-05 | 1 | -0/+6 |
| | |||||
* | Fix casting for the array API concat() and stack() | Aaron Meurer | 2021-08-04 | 1 | -4/+5 |
| | |||||
* | Move some imports out of functions to the top of the file | Aaron Meurer | 2021-08-04 | 1 | -3/+4 |
| | | | | | Some of the imports in the array API module have to be inside functions to avoid circular imports, but these ones did not. | ||||
* | Move the array API dtype categories into the top level | Aaron Meurer | 2021-08-04 | 3 | -26/+17 |
| | | | | | They are not an official part of the spec but are useful for various parts of the implementation. | ||||
* | Remove unused import | Aaron Meurer | 2021-08-04 | 1 | -1/+1 |
| | |||||
* | Remove asarray() calls from the array API statistical functions | Aaron Meurer | 2021-08-04 | 1 | -5/+5 |
| | | | | asarray() is already called in Array._new. | ||||
* | Remove no longer comment about the keepdims argument to argmin | Aaron Meurer | 2021-08-04 | 1 | -2/+0 |
| | |||||
* | Print a warning when importing the numpy.array_api submodule | Aaron Meurer | 2021-08-04 | 1 | -0/+4 |
| | |||||
* | Rename numpy._array_api to numpy.array_api | Aaron Meurer | 2021-08-04 | 19 | -0/+3020 |
Instead of the leading underscore, the experimentalness of the module will be indicated by omitting a warning on import. That we, we do not have to change the API from underscore to no underscore when the module is no longer experimental. |