You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<h1>Changelog<aclass="headerlink" href="#changelog" title="Link to this heading">¶</a></h1>
249
-
<sectionid="xxx">
250
-
<h2>2.4.0 (XXX)<aclass="headerlink" href="#xxx" title="Link to this heading">¶</a></h2>
249
+
<sectionid="id1">
250
+
<h2>2.4.0 (2025-06-16)<aclass="headerlink" href="#id1" title="Link to this heading">¶</a></h2>
251
251
<sectionid="major-changes">
252
252
<h3>Major Changes<aclass="headerlink" href="#major-changes" title="Link to this heading">¶</a></h3>
253
253
<ulclass="simple">
@@ -280,22 +280,22 @@ <h3>Contributors<a class="headerlink" href="#contributors" title="Link to this h
280
280
<p>The following users contributed to this release:</p>
281
281
<p>Lumir Balhar,
282
282
Evgeni Burovski,
283
-
Joren Hammudoglu
283
+
Joren Hammudoglu,
284
284
Tim Head,
285
285
Guido Imperiale,
286
286
Lucy Liu</p>
287
287
</section>
288
288
</section>
289
-
<sectionid="id1">
290
-
<h2>2.3.1 (2025-03-20)<aclass="headerlink" href="#id1" title="Link to this heading">¶</a></h2>
289
+
<sectionid="id2">
290
+
<h2>2.3.1 (2025-03-20)<aclass="headerlink" href="#id2" title="Link to this heading">¶</a></h2>
291
291
<p>This is a bugfix release with no new features compared to 2.3. This release fixes an
292
292
issue with <codeclass="docutils literal notranslate"><spanclass="pre">where</span></code> for scalar arguments, found in downstream testing of the 2024.12
293
293
support.</p>
294
294
</section>
295
-
<sectionid="id2">
296
-
<h2>2.3 (2025-02-27)<aclass="headerlink" href="#id2" title="Link to this heading">¶</a></h2>
297
295
<sectionid="id3">
298
-
<h3>Major Changes<aclass="headerlink" href="#id3" title="Link to this heading">¶</a></h3>
296
+
<h2>2.3 (2025-02-27)<aclass="headerlink" href="#id3" title="Link to this heading">¶</a></h2>
297
+
<sectionid="id4">
298
+
<h3>Major Changes<aclass="headerlink" href="#id4" title="Link to this heading">¶</a></h3>
299
299
<ul>
300
300
<li><p>The default version of the array API standard is now 2024.12. Previous versions can
301
301
still be enabled via the <aclass="reference internal" href="api.html#array-api-strict-flags"><spanclass="std std-ref">flags API</span></a>.</p>
@@ -332,8 +332,8 @@ <h3>Major Changes<a class="headerlink" href="#id3" title="Link to this heading">
332
332
the data type of their output.</p></li>
333
333
</ul>
334
334
</section>
335
-
<sectionid="id4">
336
-
<h3>Minor Changes<aclass="headerlink" href="#id4" title="Link to this heading">¶</a></h3>
335
+
<sectionid="id5">
336
+
<h3>Minor Changes<aclass="headerlink" href="#id5" title="Link to this heading">¶</a></h3>
337
337
<ulclass="simple">
338
338
<li><p><codeclass="docutils literal notranslate"><spanclass="pre">vecdot</span></code> now conjugates the first argument, in accordance with the standard.</p></li>
339
339
<li><p><codeclass="docutils literal notranslate"><spanclass="pre">astype</span></code> now raises a <codeclass="docutils literal notranslate"><spanclass="pre">TypeError</span></code> instead of casting a complex floating-point
@@ -345,8 +345,8 @@ <h3>Minor Changes<a class="headerlink" href="#id4" title="Link to this heading">
345
345
<li><p>the build system now uses <codeclass="docutils literal notranslate"><spanclass="pre">pyproject.toml</span></code>, not <codeclass="docutils literal notranslate"><spanclass="pre">setup.py</span></code>.</p></li>
346
346
</ul>
347
347
</section>
348
-
<sectionid="id5">
349
-
<h3>Contributors<aclass="headerlink" href="#id5" title="Link to this heading">¶</a></h3>
348
+
<sectionid="id6">
349
+
<h3>Contributors<aclass="headerlink" href="#id6" title="Link to this heading">¶</a></h3>
350
350
<p>The following users contributed to this release:</p>
351
351
<p>Aaron Meurer
352
352
Clément Robert
@@ -356,10 +356,10 @@ <h3>Contributors<a class="headerlink" href="#id5" title="Link to this heading">
356
356
Tim Head</p>
357
357
</section>
358
358
</section>
359
-
<sectionid="id6">
360
-
<h2>2.2 (2024-11-11)<aclass="headerlink" href="#id6" title="Link to this heading">¶</a></h2>
361
359
<sectionid="id7">
362
-
<h3>Major Changes<aclass="headerlink" href="#id7" title="Link to this heading">¶</a></h3>
360
+
<h2>2.2 (2024-11-11)<aclass="headerlink" href="#id7" title="Link to this heading">¶</a></h2>
361
+
<sectionid="id8">
362
+
<h3>Major Changes<aclass="headerlink" href="#id8" title="Link to this heading">¶</a></h3>
363
363
<ul>
364
364
<li><p>Preliminary support for the draft 2024.12 version of the standard is now
365
365
implemented. This is disabled by default, but can be enabled with the <aclass="reference internal" href="api.html#array-api-strict-flags"><spanclass="std std-ref">flags
@@ -382,19 +382,19 @@ <h3>Major Changes<a class="headerlink" href="#id7" title="Link to this heading">
382
382
</li>
383
383
</ul>
384
384
</section>
385
-
<sectionid="id8">
386
-
<h3>Minor Changes<aclass="headerlink" href="#id8" title="Link to this heading">¶</a></h3>
385
+
<sectionid="id9">
386
+
<h3>Minor Changes<aclass="headerlink" href="#id9" title="Link to this heading">¶</a></h3>
387
387
<ulclass="simple">
388
388
<li><p><codeclass="docutils literal notranslate"><spanclass="pre">__array_namespace_info__()</span></code> now returns a class instead of a module. This
389
389
prevents extraneous names that aren’t part of the standard from appearing on
390
390
it.</p></li>
391
391
</ul>
392
392
</section>
393
393
</section>
394
-
<sectionid="id9">
395
-
<h2>2.1.3 (2024-11-08)<aclass="headerlink" href="#id9" title="Link to this heading">¶</a></h2>
396
394
<sectionid="id10">
397
-
<h3>Major Changes<aclass="headerlink" href="#id10" title="Link to this heading">¶</a></h3>
395
+
<h2>2.1.3 (2024-11-08)<aclass="headerlink" href="#id10" title="Link to this heading">¶</a></h2>
396
+
<sectionid="id11">
397
+
<h3>Major Changes<aclass="headerlink" href="#id11" title="Link to this heading">¶</a></h3>
398
398
<ulclass="simple">
399
399
<li><p>Revert the change to require NumPy >= 2.1 and Python >= 3.10 from
400
400
array-api-strict 2.1.2. array-api-strict now requires NumPy >= 1.21 and
@@ -409,19 +409,19 @@ <h3>Major Changes<a class="headerlink" href="#id10" title="Link to this heading"
409
409
</ul>
410
410
</section>
411
411
</section>
412
-
<sectionid="id11">
413
-
<h2>2.1.2 (2024-11-07)<aclass="headerlink" href="#id11" title="Link to this heading">¶</a></h2>
414
412
<sectionid="id12">
415
-
<h3>Major Changes<aclass="headerlink" href="#id12" title="Link to this heading">¶</a></h3>
413
+
<h2>2.1.2 (2024-11-07)<aclass="headerlink" href="#id12" title="Link to this heading">¶</a></h2>
414
+
<sectionid="id13">
415
+
<h3>Major Changes<aclass="headerlink" href="#id13" title="Link to this heading">¶</a></h3>
416
416
<ulclass="simple">
417
417
<li><p>array-api-strict now requires NumPy >= 2.1 and Python >= 3.10</p></li>
418
418
</ul>
419
419
</section>
420
420
</section>
421
-
<sectionid="id13">
422
-
<h2>2.1.1 (2024-11-07)<aclass="headerlink" href="#id13" title="Link to this heading">¶</a></h2>
423
421
<sectionid="id14">
424
-
<h3>Major Changes<aclass="headerlink" href="#id14" title="Link to this heading">¶</a></h3>
422
+
<h2>2.1.1 (2024-11-07)<aclass="headerlink" href="#id14" title="Link to this heading">¶</a></h2>
423
+
<sectionid="id15">
424
+
<h3>Major Changes<aclass="headerlink" href="#id15" title="Link to this heading">¶</a></h3>
425
425
<ulclass="simple">
426
426
<li><p>Remove the <codeclass="docutils literal notranslate"><spanclass="pre">__array__</span></code> method from array-api-strict arrays. This means they
427
427
will no longer be implicitly converted to NumPy arrays when passed to <codeclass="docutils literal notranslate"><spanclass="pre">np</span></code>
@@ -430,8 +430,8 @@ <h3>Major Changes<a class="headerlink" href="#id14" title="Link to this heading"
430
430
strict array to a NumPy array, use <codeclass="docutils literal notranslate"><spanclass="pre">np.from_dlpack(x)</span></code></p></li>
431
431
</ul>
432
432
</section>
433
-
<sectionid="id15">
434
-
<h3>Minor Changes<aclass="headerlink" href="#id15" title="Link to this heading">¶</a></h3>
433
+
<sectionid="id16">
434
+
<h3>Minor Changes<aclass="headerlink" href="#id16" title="Link to this heading">¶</a></h3>
435
435
<ulclass="simple">
436
436
<li><p>Use a more robust implementation of <codeclass="docutils literal notranslate"><spanclass="pre">clip()</span></code> that handles corner cases better.</p></li>
437
437
<li><p>Fix the definition of <codeclass="docutils literal notranslate"><spanclass="pre">sign()</span></code> for complex numbers when using NumPy 1.x.</p></li>
@@ -442,10 +442,10 @@ <h3>Minor Changes<a class="headerlink" href="#id15" title="Link to this heading"
442
442
</ul>
443
443
</section>
444
444
</section>
445
-
<sectionid="id16">
446
-
<h2>2.1 (2024-10-18)<aclass="headerlink" href="#id16" title="Link to this heading">¶</a></h2>
447
445
<sectionid="id17">
448
-
<h3>Major Changes<aclass="headerlink" href="#id17" title="Link to this heading">¶</a></h3>
446
+
<h2>2.1 (2024-10-18)<aclass="headerlink" href="#id17" title="Link to this heading">¶</a></h2>
447
+
<sectionid="id18">
448
+
<h3>Major Changes<aclass="headerlink" href="#id18" title="Link to this heading">¶</a></h3>
449
449
<ulclass="simple">
450
450
<li><p>The default version of the array API standard is now 2023.12. 2022.12 can
451
451
still be enabled via the <aclass="reference internal" href="api.html#array-api-strict-flags"><spanclass="std std-ref">flags API</span></a>.</p></li>
@@ -461,18 +461,18 @@ <h3>Major Changes<a class="headerlink" href="#id17" title="Link to this heading"
461
461
exception. (Thanks to <aclass="reference external" href="https://github.com/betatim">@betatim</a>).</p></li>
462
462
</ul>
463
463
</section>
464
-
<sectionid="id18">
465
-
<h3>Minor Changes<aclass="headerlink" href="#id18" title="Link to this heading">¶</a></h3>
464
+
<sectionid="id19">
465
+
<h3>Minor Changes<aclass="headerlink" href="#id19" title="Link to this heading">¶</a></h3>
466
466
<ulclass="simple">
467
467
<li><p>Avoid implicitly relying on <codeclass="docutils literal notranslate"><spanclass="pre">__array__</span></code> in some places. These changes should
468
468
not be usef visible.</p></li>
469
469
</ul>
470
470
</section>
471
471
</section>
472
-
<sectionid="id19">
473
-
<h2>2.0.1 (2024-07-01)<aclass="headerlink" href="#id19" title="Link to this heading">¶</a></h2>
474
472
<sectionid="id20">
475
-
<h3>Minor Changes<aclass="headerlink" href="#id20" title="Link to this heading">¶</a></h3>
473
+
<h2>2.0.1 (2024-07-01)<aclass="headerlink" href="#id20" title="Link to this heading">¶</a></h2>
474
+
<sectionid="id21">
475
+
<h3>Minor Changes<aclass="headerlink" href="#id21" title="Link to this heading">¶</a></h3>
476
476
<ulclass="simple">
477
477
<li><p>Re-allow iteration on 1-D arrays. A change from 2.0 fixed iter() raising on
478
478
n-D arrays but also made 1-D arrays raise. The standard does not explicitly
@@ -481,10 +481,10 @@ <h3>Minor Changes<a class="headerlink" href="#id20" title="Link to this heading"
481
481
</ul>
482
482
</section>
483
483
</section>
484
-
<sectionid="id21">
485
-
<h2>2.0 (2024-06-27)<aclass="headerlink" href="#id21" title="Link to this heading">¶</a></h2>
486
484
<sectionid="id22">
487
-
<h3>Major Changes<aclass="headerlink" href="#id22" title="Link to this heading">¶</a></h3>
485
+
<h2>2.0 (2024-06-27)<aclass="headerlink" href="#id22" title="Link to this heading">¶</a></h2>
486
+
<sectionid="id23">
487
+
<h3>Major Changes<aclass="headerlink" href="#id23" title="Link to this heading">¶</a></h3>
488
488
<ulclass="simple">
489
489
<li><p>array-api-strict has a new set of <aclass="reference internal" href="api.html#array-api-strict-flags"><spanclass="std std-ref">flags</span></a> that can
490
490
be used to dynamically enable or disable features in array-api-strict. These
@@ -503,23 +503,23 @@ <h3>Major Changes<a class="headerlink" href="#id22" title="Link to this heading"
503
503
change the default version to 2023.12.</p></li>
504
504
</ul>
505
505
</section>
506
-
<sectionid="id23">
507
-
<h3>Minor Changes<aclass="headerlink" href="#id23" title="Link to this heading">¶</a></h3>
506
+
<sectionid="id24">
507
+
<h3>Minor Changes<aclass="headerlink" href="#id24" title="Link to this heading">¶</a></h3>
508
508
<ulclass="simple">
509
509
<li><p>Calling <codeclass="docutils literal notranslate"><spanclass="pre">iter()</span></code> on an array now correctly raises <codeclass="docutils literal notranslate"><spanclass="pre">TypeError</span></code>.</p></li>
510
510
<li><p>Add some missing names to <codeclass="docutils literal notranslate"><spanclass="pre">__all__</span></code>.</p></li>
511
511
</ul>
512
512
</section>
513
513
</section>
514
-
<sectionid="id24">
515
-
<h2>1.1.1 (2024-04-29)<aclass="headerlink" href="#id24" title="Link to this heading">¶</a></h2>
514
+
<sectionid="id25">
515
+
<h2>1.1.1 (2024-04-29)<aclass="headerlink" href="#id25" title="Link to this heading">¶</a></h2>
516
516
<ulclass="simple">
517
517
<li><p>Fix the <codeclass="docutils literal notranslate"><spanclass="pre">api_version</span></code> argument to <codeclass="docutils literal notranslate"><spanclass="pre">__array_namespace__</span></code> to accept
518
518
<codeclass="docutils literal notranslate"><spanclass="pre">'2021.12'</span></code> or <codeclass="docutils literal notranslate"><spanclass="pre">'2022.12'</span></code>.</p></li>
519
519
</ul>
520
520
</section>
521
-
<sectionid="id25">
522
-
<h2>1.1 (2024-04-08)<aclass="headerlink" href="#id25" title="Link to this heading">¶</a></h2>
521
+
<sectionid="id26">
522
+
<h2>1.1 (2024-04-08)<aclass="headerlink" href="#id26" title="Link to this heading">¶</a></h2>
523
523
<ulclass="simple">
524
524
<li><p>Fix the <codeclass="docutils literal notranslate"><spanclass="pre">copy</span></code> flag in <codeclass="docutils literal notranslate"><spanclass="pre">__array__</span></code> for NumPy 2.0.</p></li>
525
525
<li><p>Add full <codeclass="docutils literal notranslate"><spanclass="pre">copy=False</span></code> support to <codeclass="docutils literal notranslate"><spanclass="pre">asarray()</span></code>. This is emulated in NumPy 1.26 by creating
@@ -528,8 +528,8 @@ <h2>1.1 (2024-04-08)<a class="headerlink" href="#id25" title="Link to this headi
528
528
<li><p>Add broadcasting support to <codeclass="docutils literal notranslate"><spanclass="pre">cross</span></code>.</p></li>
529
529
</ul>
530
530
</section>
531
-
<sectionid="id26">
532
-
<h2>1.0 (2024-01-24)<aclass="headerlink" href="#id26" title="Link to this heading">¶</a></h2>
531
+
<sectionid="id27">
532
+
<h2>1.0 (2024-01-24)<aclass="headerlink" href="#id27" title="Link to this heading">¶</a></h2>
533
533
<p>This is the first release of <codeclass="docutils literal notranslate"><spanclass="pre">array_api_strict</span></code>. It is extracted from
534
534
<codeclass="docutils literal notranslate"><spanclass="pre">numpy.array_api</span></code>, which was included as an experimental submodule in NumPy
535
535
versions prior to 2.0. Note that the commit history in this repository is
@@ -621,54 +621,54 @@ <h2>1.0 (2024-01-24)<a class="headerlink" href="#id26" title="Link to this headi
0 commit comments