Skip to content

Commit e4d0798

Browse files
committed
Fixes in the README
1 parent 07d482f commit e4d0798

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

README.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -81,45 +81,45 @@ Here is an (incomplete) list of the sorts of ways that array-api-strict is
8181
strict/minimal:
8282

8383
- Only those functions and methods that are [defined in the
84-
standard](https://data-apis.org/array-api/draft/API_specification/index.html)
84+
standard](https://data-apis.org/array-api/latest/API_specification/index.html)
8585
are included.
8686

8787
- In those functions, only the keyword-arguments that are defined by the
8888
standard are included. All signatures in array-api-strict use
8989
[positional-only
90-
arguments](https://data-apis.org/array-api/draft/API_specification/function_and_method_signatures.html#function-and-method-signatures).
90+
arguments](https://data-apis.org/array-api/latest/API_specification/function_and_method_signatures.html#function-and-method-signatures).
9191
As noted above, only array_api_strict array objects are accepted by
9292
functions, except in the places where the standard allows Python scalars
9393
(i.e., functions to not automatically call `asarray` on their inputs).
9494

9595
- Only those [dtypes that are defined in the
96-
standard](https://data-apis.org/array-api/draft/API_specification/data_types.html)
96+
standard](https://data-apis.org/array-api/latest/API_specification/data_types.html)
9797
are included.
9898

9999
- All functions and methods reject inputs if the standard does not *require*
100100
the input dtype(s) to be supported. This is one of the most restrictive
101101
aspects of the library. For example, in NumPy, most transcendental functions
102102
like `sin` will accept integer array inputs, but the [standard only requires
103103
them to accept floating-point
104-
inputs](https://data-apis.org/array-api/draft/API_specification/generated/array_api.sin.html#array_api.sin),
104+
inputs](https://data-apis.org/array-api/latest/API_specification/generated/array_api.sin.html#array_api.sin),
105105
so in array-api-strict, `sin(integer_array)` will raise an exception.
106106

107107
- The
108-
[indexing](https://data-apis.org/array-api/draft/API_specification/indexing.html)
108+
[indexing](https://data-apis.org/array-api/latest/API_specification/indexing.html)
109109
semantics required by the standard are not
110110

111111
- There are no distinct "scalar" objects as in NumPy. There are only 0-D
112112
arrays.
113113

114114
- Dtype objects are just empty objects that only implement [equality
115-
comparison](https://data-apis.org/array-api/draft/API_specification/generated/array_api.data_types.__eq__.html).
115+
comparison](https://data-apis.org/array-api/latest/API_specification/generated/array_api.data_types.__eq__.html).
116116
The way to access dtype objects in the standard is by name, like
117117
`xp.float32`.
118118

119119
- The array object type itself is private and should not be accessed.
120120
Subclassing or otherwise trying to directly initialize this object is not
121121
supported. Arrays should created with one of the [array creation
122-
functions](https://data-apis.org/array-api/draft/API_specification/creation_functions.html)
122+
functions](https://data-apis.org/array-api/latest/API_specification/creation_functions.html)
123123
such as `asarray`.
124124

125125
## Caveats
@@ -144,9 +144,9 @@ issue, but this hasn't necessarily been tested thoroughly.
144144
`NotImplementedError` in that case.
145145

146146
2. Since NumPy is a CPU-only library, the [device
147-
support](https://data-apis.org/array-api/draft/design_topics/device_support.html)
147+
support](https://data-apis.org/array-api/latest/design_topics/device_support.html)
148148
in array-api-strict is superficial only. `x.device` is always a (private)
149-
`_CPU_DEVICE` object, and `device` keywords to creation functions only
149+
`CPU_DEVICE` object, and `device` keywords to creation functions only
150150
accept either this object or `None`. A future version of array-api-strict
151151
[may add support for a CuPy
152152
backend](https://github.com/data-apis/array-api-strict/issues/5) so that
@@ -162,13 +162,13 @@ issue, but this hasn't necessarily been tested thoroughly.
162162

163163
4. There are some behaviors in the standard that are not required to be
164164
implemented by libraries that cannot support [data dependent
165-
shapes](https://data-apis.org/array-api/draft/design_topics/data_dependent_output_shapes.html).
165+
shapes](https://data-apis.org/array-api/latest/design_topics/data_dependent_output_shapes.html).
166166
This includes [the `unique_*`
167-
functions](https://data-apis.org/array-api/draft/API_specification/set_functions.html),
167+
functions](https://data-apis.org/array-api/latest/API_specification/set_functions.html),
168168
[boolean array
169-
indexing](https://data-apis.org/array-api/draft/API_specification/indexing.html#boolean-array-indexing),
169+
indexing](https://data-apis.org/array-api/latest/API_specification/indexing.html#boolean-array-indexing),
170170
and the
171-
[`nonzero`](https://data-apis.org/array-api/draft/API_specification/generated/array_api.nonzero.html)
171+
[`nonzero`](https://data-apis.org/array-api/latest/API_specification/generated/array_api.nonzero.html)
172172
function. array-api-strict currently implements all of these. In the
173173
future, [there may be a way to disable them](https://github.com/data-apis/array-api-strict/issues/7).
174174

0 commit comments

Comments
 (0)