summaryrefslogtreecommitdiff
path: root/numpy/_array_api
Commit message (Collapse)AuthorAgeFilesLines
* Add type annotations to the array api submodule function definitionsAaron Meurer2021-01-2010-97/+151
| | | | | Some stubs still need to be modified to properly pass mypy type checking. Also, 'device' is just left as a TypeVar() for now.
* Add an explanatory docstring to _array_api/__init__.pyAaron Meurer2021-01-131-0/+66
| | | | This is mostly aimed at any potential reviewers of the module for now.
* Add basic docstrings to the array API wrapper functionsAaron Meurer2021-01-128-1/+521
| | | | | | | | | | | The docstrings just point back to the functions they wrap for now. More thought may need to be put into this for the future. Most functions can actually perhaps inherit the docstring of the function they wrap directly, but there are some functions that have differences (e.g., different names, different keyword arguments, fewer keyword arguments, etc.). There's also the question of how to handle cross-references/see alsos that point to functions not in the API spec and behavior shown in docstring examples that isn't required in the spec.
* Fix array API functions that need to use np.linalgAaron Meurer2021-01-121-3/+3
|
* Use "import numpy as np" in the array_api submoduleAaron Meurer2021-01-129-226/+131
| | | | | | This avoids importing everything inside the individual functions, but still is preferred over importing the functions used explicitly, as most of them clash with the wrapper function names.
* Fix the array_api submodule __init__.py importsAaron Meurer2021-01-121-12/+12
|
* Add missing returns to the array API sorting functionsAaron Meurer2021-01-121-0/+2
|
* Make the array_api submodules private, and remove __all__ from individual filesAaron Meurer2021-01-1212-25/+1
| | | | | The specific submodule organization is an implementation detail and should not be used. Only the top-level numpy._array_api namespace should be used.
* Add the device keyword to the array creation functionsAaron Meurer2021-01-121-11/+44
|
* Correct some differing keyword arguments in the array API namespaceAaron Meurer2021-01-112-4/+16
|
* Fix different behavior of norm() with axis=None in the array API namespaceAaron Meurer2021-01-111-0/+3
|
* Fix different names for some bitwise functions in the array apisAaron Meurer2021-01-111-6/+9
|
* Fix the bool name in the array API namespaceAaron Meurer2021-01-111-1/+3
|
* Fix array API functions that are named differently or not in the default ↵Aaron Meurer2021-01-113-21/+33
| | | | numpy namespace
* Add dtypes to the _array_api namespaceAaron Meurer2021-01-112-0/+7
|
* Add initial array_api sub-namespaceAaron Meurer2021-01-1111-0/+503
This is based on the function stubs from the array API test suite, and is currently based on the assumption that NumPy already follows the array API standard. Now it needs to be modified to fix it in the places where NumPy deviates (for example, different function names for inverse trigonometric functions).