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>
248
248
<sectionid="id1">
249
-
<h2>2.0.1 (2024-07-01)<aclass="headerlink" href="#id1" title="Link to this heading">¶</a></h2>
249
+
<h2>2.1 (2024-10-18)<aclass="headerlink" href="#id1" title="Link to this heading">¶</a></h2>
250
250
</section>
251
+
<sectionid="major-changes">
252
+
<h2>Major Changes<aclass="headerlink" href="#major-changes" title="Link to this heading">¶</a></h2>
253
+
<ulclass="simple">
254
+
<li><p>The default version of the array API standard is now 2023.12. 2022.12 can
255
+
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>
256
+
<li><p>Added support for multiple fake “devices”, so that code testing against
257
+
array-api-strict can check for proper device support. Currently there are
258
+
three “devices”, the “CPU” device, which is the default devices, and two
259
+
pseudo “device” objects. This set of devices can be accessed with
260
+
<codeclass="docutils literal notranslate"><spanclass="pre">array_api_strict.__array_namespace_info__().devices()</span></code> (requires the array
261
+
API version to be set to 2023.12), and via the other array API APIs that
262
+
return devices (like <codeclass="docutils literal notranslate"><spanclass="pre">x.device</span></code>). These devices do not correspond to any
263
+
actual hardware and only exist for testing array API device semantics; for
264
+
instance, implicitly combining arrays on different devices results in an
265
+
exception. (Thanks to <aclass="reference external" href="https://github.com/betatim">@betatim</a>).</p></li>
266
+
</ul>
251
267
<sectionid="minor-changes">
252
-
<h2>Minor Changes<aclass="headerlink" href="#minor-changes" title="Link to this heading">¶</a></h2>
268
+
<h3>Minor Changes<aclass="headerlink" href="#minor-changes" title="Link to this heading">¶</a></h3>
269
+
<ulclass="simple">
270
+
<li><p>Avoid implicitly relying on <codeclass="docutils literal notranslate"><spanclass="pre">__array__</span></code> in some places. These changes should
271
+
not be usef visible.</p></li>
272
+
</ul>
273
+
</section>
274
+
</section>
275
+
<sectionid="id2">
276
+
<h2>2.0.1 (2024-07-01)<aclass="headerlink" href="#id2" title="Link to this heading">¶</a></h2>
277
+
<sectionid="id3">
278
+
<h3>Minor Changes<aclass="headerlink" href="#id3" title="Link to this heading">¶</a></h3>
253
279
<ulclass="simple">
254
280
<li><p>Re-allow iteration on 1-D arrays. A change from 2.0 fixed iter() raising on
255
281
n-D arrays but also made 1-D arrays raise. The standard does not explicitly
256
282
disallow iteration on 1-D arrays, and the default Python <codeclass="docutils literal notranslate"><spanclass="pre">__iter__</span></code>
257
283
implementation allows it to work, so for now, it is kept intact as working.</p></li>
258
284
</ul>
259
285
</section>
260
-
<sectionid="id2">
261
-
<h2>2.0 (2024-06-27)<aclass="headerlink" href="#id2" title="Link to this heading">¶</a></h2>
262
-
<sectionid="major-changes">
263
-
<h3>Major Changes<aclass="headerlink" href="#major-changes" title="Link to this heading">¶</a></h3>
286
+
</section>
287
+
<sectionid="id4">
288
+
<h2>2.0 (2024-06-27)<aclass="headerlink" href="#id4" title="Link to this heading">¶</a></h2>
289
+
<sectionid="id5">
290
+
<h3>Major Changes<aclass="headerlink" href="#id5" title="Link to this heading">¶</a></h3>
264
291
<ulclass="simple">
265
292
<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
266
293
be used to dynamically enable or disable features in array-api-strict. These
@@ -279,23 +306,23 @@ <h3>Major Changes<a class="headerlink" href="#major-changes" title="Link to this
279
306
change the default version to 2023.12.</p></li>
280
307
</ul>
281
308
</section>
282
-
<sectionid="id3">
283
-
<h3>Minor Changes<aclass="headerlink" href="#id3" title="Link to this heading">¶</a></h3>
309
+
<sectionid="id6">
310
+
<h3>Minor Changes<aclass="headerlink" href="#id6" title="Link to this heading">¶</a></h3>
284
311
<ulclass="simple">
285
312
<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>
286
313
<li><p>Add some missing names to <codeclass="docutils literal notranslate"><spanclass="pre">__all__</span></code>.</p></li>
287
314
</ul>
288
315
</section>
289
316
</section>
290
-
<sectionid="id4">
291
-
<h2>1.1.1 (2024-04-29)<aclass="headerlink" href="#id4" title="Link to this heading">¶</a></h2>
317
+
<sectionid="id7">
318
+
<h2>1.1.1 (2024-04-29)<aclass="headerlink" href="#id7" title="Link to this heading">¶</a></h2>
292
319
<ulclass="simple">
293
320
<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
294
321
<codeclass="docutils literal notranslate"><spanclass="pre">'2021.12'</span></code> or <codeclass="docutils literal notranslate"><spanclass="pre">'2022.12'</span></code>.</p></li>
295
322
</ul>
296
323
</section>
297
-
<sectionid="id5">
298
-
<h2>1.1 (2024-04-08)<aclass="headerlink" href="#id5" title="Link to this heading">¶</a></h2>
324
+
<sectionid="id8">
325
+
<h2>1.1 (2024-04-08)<aclass="headerlink" href="#id8" title="Link to this heading">¶</a></h2>
299
326
<ulclass="simple">
300
327
<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>
301
328
<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
@@ -304,8 +331,8 @@ <h2>1.1 (2024-04-08)<a class="headerlink" href="#id5" title="Link to this headin
304
331
<li><p>Add broadcasting support to <codeclass="docutils literal notranslate"><spanclass="pre">cross</span></code>.</p></li>
305
332
</ul>
306
333
</section>
307
-
<sectionid="id6">
308
-
<h2>1.0 (2024-01-24)<aclass="headerlink" href="#id6" title="Link to this heading">¶</a></h2>
334
+
<sectionid="id9">
335
+
<h2>1.0 (2024-01-24)<aclass="headerlink" href="#id9" title="Link to this heading">¶</a></h2>
309
336
<p>This is the first release of <codeclass="docutils literal notranslate"><spanclass="pre">array_api_strict</span></code>. It is extracted from
310
337
<codeclass="docutils literal notranslate"><spanclass="pre">numpy.array_api</span></code>, which was included as an experimental submodule in NumPy
311
338
versions prior to 2.0. Note that the commit history in this repository is
@@ -389,16 +416,23 @@ <h2>1.0 (2024-01-24)<a class="headerlink" href="#id6" title="Link to this headin
0 commit comments