Skip to content

Commit a49207d

Browse files
committed
Deploying to gh-pages from @ b6cd7e9 🚀
1 parent c1c3fd0 commit a49207d

File tree

4 files changed

+127
-52
lines changed

4 files changed

+127
-52
lines changed

_sources/changelog.md.txt

Lines changed: 33 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,39 @@
11
# Changelog
22

3+
## 2.2 (2024-11-11)
4+
5+
### Major Changes
6+
7+
- Preliminary support for the draft 2024.12 version of the standard is now
8+
implemented. This is disabled by default, but can be enabled with the [flags
9+
API](array-api-strict-flags), e.g., by calling
10+
`set_array_api_strict_flags(api_version='2024.12')` or setting
11+
`ARRAY_API_STRICT_API_VERSION=2024.12`.
12+
13+
Note that this support is still preliminary and still relatively untested.
14+
Please [report any
15+
issues](https://github.com/data-apis/array-api-strict/issues) you find.
16+
17+
The following functions are implemented for 2024:
18+
19+
- `diff`
20+
- `nextafter`
21+
- `reciprocal`
22+
- `take_along_axis`
23+
- The `'max dimensions'` key of `__array_namespace_info__().capabilities()`.
24+
25+
Some planned changes to the 2024.12 standard, including scalar support for
26+
array functions, is not yet implemented but will be in a future version.
27+
28+
### Minor Changes
29+
30+
- `__array_namespace_info__()` now returns a class instead of a module. This
31+
prevents extraneous names that aren't part of the standard from appearing on
32+
it.
33+
334
## 2.1.3 (2024-11-08)
435

5-
## Major Changes
36+
### Major Changes
637

738
- Revert the change to require NumPy >= 2.1 and Python >= 3.10 from
839
array-api-strict 2.1.2. array-api-strict now requires NumPy >= 1.21 and
@@ -18,7 +49,7 @@
1849

1950
## 2.1.2 (2024-11-07)
2051

21-
## Major Changes
52+
### Major Changes
2253

2354
- array-api-strict now requires NumPy >= 2.1 and Python >= 3.10
2455

api.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -330,8 +330,8 @@
330330
<dt class="field-odd">Parameters<span class="colon">:</span></dt>
331331
<dd class="field-odd"><ul>
332332
<li><p><strong>api_version</strong> (<em>str, optional</em>) – The version of the standard to use. Supported versions are:
333-
<code class="docutils literal notranslate"><span class="pre">('2021.12',</span> <span class="pre">'2022.12',</span> <span class="pre">'2023.12')</span></code>. The default version number is
334-
<code class="docutils literal notranslate"><span class="pre">'2023.12'</span></code>.</p>
333+
<code class="docutils literal notranslate"><span class="pre">('2021.12',</span> <span class="pre">'2022.12',</span> <span class="pre">'2023.12')</span></code>, plus the draft version <code class="docutils literal notranslate"><span class="pre">2024.12</span></code>.
334+
The default version number is <code class="docutils literal notranslate"><span class="pre">'2023.12'</span></code>.</p>
335335
<p>Note that 2021.12 is supported, but currently gives the same thing as
336336
2022.12 (except that the fft extension will be disabled).</p>
337337
</li>

changelog.html

Lines changed: 91 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -246,10 +246,44 @@
246246
<section class="tex2jax_ignore mathjax_ignore" id="changelog">
247247
<h1>Changelog<a class="headerlink" href="#changelog" title="Link to this heading"></a></h1>
248248
<section id="id1">
249-
<h2>2.1.3 (2024-11-08)<a class="headerlink" href="#id1" title="Link to this heading"></a></h2>
250-
</section>
249+
<h2>2.2 (2024-11-11)<a class="headerlink" href="#id1" title="Link to this heading"></a></h2>
251250
<section id="major-changes">
252-
<h2>Major Changes<a class="headerlink" href="#major-changes" title="Link to this heading"></a></h2>
251+
<h3>Major Changes<a class="headerlink" href="#major-changes" title="Link to this heading"></a></h3>
252+
<ul>
253+
<li><p>Preliminary support for the draft 2024.12 version of the standard is now
254+
implemented. This is disabled by default, but can be enabled with the <a class="reference internal" href="api.html#array-api-strict-flags"><span class="std std-ref">flags
255+
API</span></a>, e.g., by calling
256+
<code class="docutils literal notranslate"><span class="pre">set_array_api_strict_flags(api_version='2024.12')</span></code> or setting
257+
<code class="docutils literal notranslate"><span class="pre">ARRAY_API_STRICT_API_VERSION=2024.12</span></code>.</p>
258+
<p>Note that this support is still preliminary and still relatively untested.
259+
Please <a class="reference external" href="https://github.com/data-apis/array-api-strict/issues">report any
260+
issues</a> you find.</p>
261+
<p>The following functions are implemented for 2024:</p>
262+
<ul class="simple">
263+
<li><p><code class="docutils literal notranslate"><span class="pre">diff</span></code></p></li>
264+
<li><p><code class="docutils literal notranslate"><span class="pre">nextafter</span></code></p></li>
265+
<li><p><code class="docutils literal notranslate"><span class="pre">reciprocal</span></code></p></li>
266+
<li><p><code class="docutils literal notranslate"><span class="pre">take_along_axis</span></code></p></li>
267+
<li><p>The <code class="docutils literal notranslate"><span class="pre">'max</span> <span class="pre">dimensions'</span></code> key of <code class="docutils literal notranslate"><span class="pre">__array_namespace_info__().capabilities()</span></code>.</p></li>
268+
</ul>
269+
<p>Some planned changes to the 2024.12 standard, including scalar support for
270+
array functions, is not yet implemented but will be in a future version.</p>
271+
</li>
272+
</ul>
273+
</section>
274+
<section id="minor-changes">
275+
<h3>Minor Changes<a class="headerlink" href="#minor-changes" title="Link to this heading"></a></h3>
276+
<ul class="simple">
277+
<li><p><code class="docutils literal notranslate"><span class="pre">__array_namespace_info__()</span></code> now returns a class instead of a module. This
278+
prevents extraneous names that aren’t part of the standard from appearing on
279+
it.</p></li>
280+
</ul>
281+
</section>
282+
</section>
283+
<section id="id2">
284+
<h2>2.1.3 (2024-11-08)<a class="headerlink" href="#id2" title="Link to this heading"></a></h2>
285+
<section id="id3">
286+
<h3>Major Changes<a class="headerlink" href="#id3" title="Link to this heading"></a></h3>
253287
<ul class="simple">
254288
<li><p>Revert the change to require NumPy &gt;= 2.1 and Python &gt;= 3.10 from
255289
array-api-strict 2.1.2. array-api-strict now requires NumPy &gt;= 1.21 and
@@ -263,19 +297,20 @@ <h2>Major Changes<a class="headerlink" href="#major-changes" title="Link to this
263297
more discussion about this.</p></li>
264298
</ul>
265299
</section>
266-
<section id="id2">
267-
<h2>2.1.2 (2024-11-07)<a class="headerlink" href="#id2" title="Link to this heading"></a></h2>
268300
</section>
269-
<section id="id3">
270-
<h2>Major Changes<a class="headerlink" href="#id3" title="Link to this heading"></a></h2>
301+
<section id="id4">
302+
<h2>2.1.2 (2024-11-07)<a class="headerlink" href="#id4" title="Link to this heading"></a></h2>
303+
<section id="id5">
304+
<h3>Major Changes<a class="headerlink" href="#id5" title="Link to this heading"></a></h3>
271305
<ul class="simple">
272306
<li><p>array-api-strict now requires NumPy &gt;= 2.1 and Python &gt;= 3.10</p></li>
273307
</ul>
274308
</section>
275-
<section id="id4">
276-
<h2>2.1.1 (2024-11-07)<a class="headerlink" href="#id4" title="Link to this heading"></a></h2>
277-
<section id="id5">
278-
<h3>Major Changes<a class="headerlink" href="#id5" title="Link to this heading"></a></h3>
309+
</section>
310+
<section id="id6">
311+
<h2>2.1.1 (2024-11-07)<a class="headerlink" href="#id6" title="Link to this heading"></a></h2>
312+
<section id="id7">
313+
<h3>Major Changes<a class="headerlink" href="#id7" title="Link to this heading"></a></h3>
279314
<ul class="simple">
280315
<li><p>Remove the <code class="docutils literal notranslate"><span class="pre">__array__</span></code> method from array-api-strict arrays. This means they
281316
will no longer be implicitly converted to NumPy arrays when passed to <code class="docutils literal notranslate"><span class="pre">np</span></code>
@@ -284,8 +319,8 @@ <h3>Major Changes<a class="headerlink" href="#id5" title="Link to this heading">
284319
strict array to a NumPy array, use <code class="docutils literal notranslate"><span class="pre">np.from_dlpack(x)</span></code></p></li>
285320
</ul>
286321
</section>
287-
<section id="minor-changes">
288-
<h3>Minor Changes<a class="headerlink" href="#minor-changes" title="Link to this heading"></a></h3>
322+
<section id="id8">
323+
<h3>Minor Changes<a class="headerlink" href="#id8" title="Link to this heading"></a></h3>
289324
<ul class="simple">
290325
<li><p>Use a more robust implementation of <code class="docutils literal notranslate"><span class="pre">clip()</span></code> that handles corner cases better.</p></li>
291326
<li><p>Fix the definition of <code class="docutils literal notranslate"><span class="pre">sign()</span></code> for complex numbers when using NumPy 1.x.</p></li>
@@ -296,10 +331,10 @@ <h3>Minor Changes<a class="headerlink" href="#minor-changes" title="Link to this
296331
</ul>
297332
</section>
298333
</section>
299-
<section id="id6">
300-
<h2>2.1 (2024-10-18)<a class="headerlink" href="#id6" title="Link to this heading"></a></h2>
301-
<section id="id7">
302-
<h3>Major Changes<a class="headerlink" href="#id7" title="Link to this heading"></a></h3>
334+
<section id="id9">
335+
<h2>2.1 (2024-10-18)<a class="headerlink" href="#id9" title="Link to this heading"></a></h2>
336+
<section id="id10">
337+
<h3>Major Changes<a class="headerlink" href="#id10" title="Link to this heading"></a></h3>
303338
<ul class="simple">
304339
<li><p>The default version of the array API standard is now 2023.12. 2022.12 can
305340
still be enabled via the <a class="reference internal" href="api.html#array-api-strict-flags"><span class="std std-ref">flags API</span></a>.</p></li>
@@ -315,18 +350,18 @@ <h3>Major Changes<a class="headerlink" href="#id7" title="Link to this heading">
315350
exception. (Thanks to <a class="reference external" href="https://github.com/betatim">&#64;betatim</a>).</p></li>
316351
</ul>
317352
</section>
318-
<section id="id8">
319-
<h3>Minor Changes<a class="headerlink" href="#id8" title="Link to this heading"></a></h3>
353+
<section id="id11">
354+
<h3>Minor Changes<a class="headerlink" href="#id11" title="Link to this heading"></a></h3>
320355
<ul class="simple">
321356
<li><p>Avoid implicitly relying on <code class="docutils literal notranslate"><span class="pre">__array__</span></code> in some places. These changes should
322357
not be usef visible.</p></li>
323358
</ul>
324359
</section>
325360
</section>
326-
<section id="id9">
327-
<h2>2.0.1 (2024-07-01)<a class="headerlink" href="#id9" title="Link to this heading"></a></h2>
328-
<section id="id10">
329-
<h3>Minor Changes<a class="headerlink" href="#id10" title="Link to this heading"></a></h3>
361+
<section id="id12">
362+
<h2>2.0.1 (2024-07-01)<a class="headerlink" href="#id12" title="Link to this heading"></a></h2>
363+
<section id="id13">
364+
<h3>Minor Changes<a class="headerlink" href="#id13" title="Link to this heading"></a></h3>
330365
<ul class="simple">
331366
<li><p>Re-allow iteration on 1-D arrays. A change from 2.0 fixed iter() raising on
332367
n-D arrays but also made 1-D arrays raise. The standard does not explicitly
@@ -335,10 +370,10 @@ <h3>Minor Changes<a class="headerlink" href="#id10" title="Link to this heading"
335370
</ul>
336371
</section>
337372
</section>
338-
<section id="id11">
339-
<h2>2.0 (2024-06-27)<a class="headerlink" href="#id11" title="Link to this heading"></a></h2>
340-
<section id="id12">
341-
<h3>Major Changes<a class="headerlink" href="#id12" title="Link to this heading"></a></h3>
373+
<section id="id14">
374+
<h2>2.0 (2024-06-27)<a class="headerlink" href="#id14" title="Link to this heading"></a></h2>
375+
<section id="id15">
376+
<h3>Major Changes<a class="headerlink" href="#id15" title="Link to this heading"></a></h3>
342377
<ul class="simple">
343378
<li><p>array-api-strict has a new set of <a class="reference internal" href="api.html#array-api-strict-flags"><span class="std std-ref">flags</span></a> that can
344379
be used to dynamically enable or disable features in array-api-strict. These
@@ -357,23 +392,23 @@ <h3>Major Changes<a class="headerlink" href="#id12" title="Link to this heading"
357392
change the default version to 2023.12.</p></li>
358393
</ul>
359394
</section>
360-
<section id="id13">
361-
<h3>Minor Changes<a class="headerlink" href="#id13" title="Link to this heading"></a></h3>
395+
<section id="id16">
396+
<h3>Minor Changes<a class="headerlink" href="#id16" title="Link to this heading"></a></h3>
362397
<ul class="simple">
363398
<li><p>Calling <code class="docutils literal notranslate"><span class="pre">iter()</span></code> on an array now correctly raises <code class="docutils literal notranslate"><span class="pre">TypeError</span></code>.</p></li>
364399
<li><p>Add some missing names to <code class="docutils literal notranslate"><span class="pre">__all__</span></code>.</p></li>
365400
</ul>
366401
</section>
367402
</section>
368-
<section id="id14">
369-
<h2>1.1.1 (2024-04-29)<a class="headerlink" href="#id14" title="Link to this heading"></a></h2>
403+
<section id="id17">
404+
<h2>1.1.1 (2024-04-29)<a class="headerlink" href="#id17" title="Link to this heading"></a></h2>
370405
<ul class="simple">
371406
<li><p>Fix the <code class="docutils literal notranslate"><span class="pre">api_version</span></code> argument to <code class="docutils literal notranslate"><span class="pre">__array_namespace__</span></code> to accept
372407
<code class="docutils literal notranslate"><span class="pre">'2021.12'</span></code> or <code class="docutils literal notranslate"><span class="pre">'2022.12'</span></code>.</p></li>
373408
</ul>
374409
</section>
375-
<section id="id15">
376-
<h2>1.1 (2024-04-08)<a class="headerlink" href="#id15" title="Link to this heading"></a></h2>
410+
<section id="id18">
411+
<h2>1.1 (2024-04-08)<a class="headerlink" href="#id18" title="Link to this heading"></a></h2>
377412
<ul class="simple">
378413
<li><p>Fix the <code class="docutils literal notranslate"><span class="pre">copy</span></code> flag in <code class="docutils literal notranslate"><span class="pre">__array__</span></code> for NumPy 2.0.</p></li>
379414
<li><p>Add full <code class="docutils literal notranslate"><span class="pre">copy=False</span></code> support to <code class="docutils literal notranslate"><span class="pre">asarray()</span></code>. This is emulated in NumPy 1.26 by creating
@@ -382,8 +417,8 @@ <h2>1.1 (2024-04-08)<a class="headerlink" href="#id15" title="Link to this headi
382417
<li><p>Add broadcasting support to <code class="docutils literal notranslate"><span class="pre">cross</span></code>.</p></li>
383418
</ul>
384419
</section>
385-
<section id="id16">
386-
<h2>1.0 (2024-01-24)<a class="headerlink" href="#id16" title="Link to this heading"></a></h2>
420+
<section id="id19">
421+
<h2>1.0 (2024-01-24)<a class="headerlink" href="#id19" title="Link to this heading"></a></h2>
387422
<p>This is the first release of <code class="docutils literal notranslate"><span class="pre">array_api_strict</span></code>. It is extracted from
388423
<code class="docutils literal notranslate"><span class="pre">numpy.array_api</span></code>, which was included as an experimental submodule in NumPy
389424
versions prior to 2.0. Note that the commit history in this repository is
@@ -467,32 +502,41 @@ <h2>1.0 (2024-01-24)<a class="headerlink" href="#id16" title="Link to this headi
467502
<div class="toc-tree">
468503
<ul>
469504
<li><a class="reference internal" href="#">Changelog</a><ul>
470-
<li><a class="reference internal" href="#id1">2.1.3 (2024-11-08)</a></li>
505+
<li><a class="reference internal" href="#id1">2.2 (2024-11-11)</a><ul>
471506
<li><a class="reference internal" href="#major-changes">Major Changes</a></li>
472-
<li><a class="reference internal" href="#id2">2.1.2 (2024-11-07)</a></li>
507+
<li><a class="reference internal" href="#minor-changes">Minor Changes</a></li>
508+
</ul>
509+
</li>
510+
<li><a class="reference internal" href="#id2">2.1.3 (2024-11-08)</a><ul>
473511
<li><a class="reference internal" href="#id3">Major Changes</a></li>
474-
<li><a class="reference internal" href="#id4">2.1.1 (2024-11-07)</a><ul>
512+
</ul>
513+
</li>
514+
<li><a class="reference internal" href="#id4">2.1.2 (2024-11-07)</a><ul>
475515
<li><a class="reference internal" href="#id5">Major Changes</a></li>
476-
<li><a class="reference internal" href="#minor-changes">Minor Changes</a></li>
477516
</ul>
478517
</li>
479-
<li><a class="reference internal" href="#id6">2.1 (2024-10-18)</a><ul>
518+
<li><a class="reference internal" href="#id6">2.1.1 (2024-11-07)</a><ul>
480519
<li><a class="reference internal" href="#id7">Major Changes</a></li>
481520
<li><a class="reference internal" href="#id8">Minor Changes</a></li>
482521
</ul>
483522
</li>
484-
<li><a class="reference internal" href="#id9">2.0.1 (2024-07-01)</a><ul>
485-
<li><a class="reference internal" href="#id10">Minor Changes</a></li>
523+
<li><a class="reference internal" href="#id9">2.1 (2024-10-18)</a><ul>
524+
<li><a class="reference internal" href="#id10">Major Changes</a></li>
525+
<li><a class="reference internal" href="#id11">Minor Changes</a></li>
486526
</ul>
487527
</li>
488-
<li><a class="reference internal" href="#id11">2.0 (2024-06-27)</a><ul>
489-
<li><a class="reference internal" href="#id12">Major Changes</a></li>
528+
<li><a class="reference internal" href="#id12">2.0.1 (2024-07-01)</a><ul>
490529
<li><a class="reference internal" href="#id13">Minor Changes</a></li>
491530
</ul>
492531
</li>
493-
<li><a class="reference internal" href="#id14">1.1.1 (2024-04-29)</a></li>
494-
<li><a class="reference internal" href="#id15">1.1 (2024-04-08)</a></li>
495-
<li><a class="reference internal" href="#id16">1.0 (2024-01-24)</a></li>
532+
<li><a class="reference internal" href="#id14">2.0 (2024-06-27)</a><ul>
533+
<li><a class="reference internal" href="#id15">Major Changes</a></li>
534+
<li><a class="reference internal" href="#id16">Minor Changes</a></li>
535+
</ul>
536+
</li>
537+
<li><a class="reference internal" href="#id17">1.1.1 (2024-04-29)</a></li>
538+
<li><a class="reference internal" href="#id18">1.1 (2024-04-08)</a></li>
539+
<li><a class="reference internal" href="#id19">1.0 (2024-01-24)</a></li>
496540
</ul>
497541
</li>
498542
</ul>

0 commit comments

Comments
 (0)