Coverage for /pythoncovmergedfiles/medio/medio/usr/local/lib/python3.9/dist-packages/scipy/_lib/array_api_compat/__init__.py: 100%
2 statements
« prev ^ index » next coverage.py v7.4.4, created at 2024-04-03 06:39 +0000
« prev ^ index » next coverage.py v7.4.4, created at 2024-04-03 06:39 +0000
1"""
2NumPy Array API compatibility library
4This is a small wrapper around NumPy and CuPy that is compatible with the
5Array API standard https://data-apis.org/array-api/latest/. See also NEP 47
6https://numpy.org/neps/nep-0047-array-api-standard.html.
8Unlike array_api_strict, this is not a strict minimal implementation of the
9Array API, but rather just an extension of the main NumPy namespace with
10changes needed to be compliant with the Array API. See
11https://numpy.org/doc/stable/reference/array_api.html for a full list of
12changes. In particular, unlike array_api_strict, this package does not use a
13separate Array object, but rather just uses numpy.ndarray directly.
15Library authors using the Array API may wish to test against array_api_strict
16to ensure they are not using functionality outside of the standard, but prefer
17this implementation for the default when working with NumPy arrays.
19"""
20__version__ = '1.5.1'
22from .common import * # noqa: F401, F403