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.1 (2024-10-18)<aclass="headerlink" href="#id1" title="Link to this heading">¶</a></h2>
250
-
</section>
249
+
<h2>2.1.1 (2024-11-07)<aclass="headerlink" href="#id1" title="Link to this heading">¶</a></h2>
251
250
<sectionid="major-changes">
252
-
<h2>Major Changes<aclass="headerlink" href="#major-changes" title="Link to this heading">¶</a></h2>
251
+
<h3>Major Changes<aclass="headerlink" href="#major-changes" title="Link to this heading">¶</a></h3>
252
+
<ulclass="simple">
253
+
<li><p>Remove the <codeclass="docutils literal notranslate"><spanclass="pre">__array__</span></code> method from array-api-strict arrays. This means they
254
+
will no longer be implicitly converted to NumPy arrays when passed to <codeclass="docutils literal notranslate"><spanclass="pre">np</span></code>
255
+
functions. This method was previously implemented as a convenience, but it
256
+
isn’t part of the array API standard. To portably convert an array API
257
+
strict array to a NumPy array, use <codeclass="docutils literal notranslate"><spanclass="pre">np.from_dlpack(x)</span></code></p></li>
258
+
</ul>
259
+
</section>
260
+
<sectionid="minor-changes">
261
+
<h3>Minor Changes<aclass="headerlink" href="#minor-changes" title="Link to this heading">¶</a></h3>
262
+
<ulclass="simple">
263
+
<li><p>Use a more robust implementation of <codeclass="docutils literal notranslate"><spanclass="pre">clip()</span></code> that handles corner cases better.</p></li>
264
+
<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>
265
+
<li><p>Correctly use the array’s device when promoting scalars. (Thanks to
<h2>2.1 (2024-10-18)<aclass="headerlink" href="#id2" title="Link to this heading">¶</a></h2>
274
+
<sectionid="id3">
275
+
<h3>Major Changes<aclass="headerlink" href="#id3" title="Link to this heading">¶</a></h3>
253
276
<ulclass="simple">
254
277
<li><p>The default version of the array API standard is now 2023.12. 2022.12 can
255
278
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>
@@ -264,18 +287,19 @@ <h2>Major Changes<a class="headerlink" href="#major-changes" title="Link to this
264
287
instance, implicitly combining arrays on different devices results in an
265
288
exception. (Thanks to <aclass="reference external" href="https://github.com/betatim">@betatim</a>).</p></li>
266
289
</ul>
267
-
<sectionid="minor-changes">
268
-
<h3>Minor Changes<aclass="headerlink" href="#minor-changes" title="Link to this heading">¶</a></h3>
290
+
</section>
291
+
<sectionid="id4">
292
+
<h3>Minor Changes<aclass="headerlink" href="#id4" title="Link to this heading">¶</a></h3>
269
293
<ulclass="simple">
270
294
<li><p>Avoid implicitly relying on <codeclass="docutils literal notranslate"><spanclass="pre">__array__</span></code> in some places. These changes should
271
295
not be usef visible.</p></li>
272
296
</ul>
273
297
</section>
274
298
</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>
299
+
<sectionid="id5">
300
+
<h2>2.0.1 (2024-07-01)<aclass="headerlink" href="#id5" title="Link to this heading">¶</a></h2>
301
+
<sectionid="id6">
302
+
<h3>Minor Changes<aclass="headerlink" href="#id6" title="Link to this heading">¶</a></h3>
279
303
<ulclass="simple">
280
304
<li><p>Re-allow iteration on 1-D arrays. A change from 2.0 fixed iter() raising on
281
305
n-D arrays but also made 1-D arrays raise. The standard does not explicitly
@@ -284,10 +308,10 @@ <h3>Minor Changes<a class="headerlink" href="#id3" title="Link to this heading">
284
308
</ul>
285
309
</section>
286
310
</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>
311
+
<sectionid="id7">
312
+
<h2>2.0 (2024-06-27)<aclass="headerlink" href="#id7" title="Link to this heading">¶</a></h2>
313
+
<sectionid="id8">
314
+
<h3>Major Changes<aclass="headerlink" href="#id8" title="Link to this heading">¶</a></h3>
291
315
<ulclass="simple">
292
316
<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
293
317
be used to dynamically enable or disable features in array-api-strict. These
@@ -306,23 +330,23 @@ <h3>Major Changes<a class="headerlink" href="#id5" title="Link to this heading">
306
330
change the default version to 2023.12.</p></li>
307
331
</ul>
308
332
</section>
309
-
<sectionid="id6">
310
-
<h3>Minor Changes<aclass="headerlink" href="#id6" title="Link to this heading">¶</a></h3>
333
+
<sectionid="id9">
334
+
<h3>Minor Changes<aclass="headerlink" href="#id9" title="Link to this heading">¶</a></h3>
311
335
<ulclass="simple">
312
336
<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>
313
337
<li><p>Add some missing names to <codeclass="docutils literal notranslate"><spanclass="pre">__all__</span></code>.</p></li>
314
338
</ul>
315
339
</section>
316
340
</section>
317
-
<sectionid="id7">
318
-
<h2>1.1.1 (2024-04-29)<aclass="headerlink" href="#id7" title="Link to this heading">¶</a></h2>
341
+
<sectionid="id10">
342
+
<h2>1.1.1 (2024-04-29)<aclass="headerlink" href="#id10" title="Link to this heading">¶</a></h2>
319
343
<ulclass="simple">
320
344
<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
321
345
<codeclass="docutils literal notranslate"><spanclass="pre">'2021.12'</span></code> or <codeclass="docutils literal notranslate"><spanclass="pre">'2022.12'</span></code>.</p></li>
322
346
</ul>
323
347
</section>
324
-
<sectionid="id8">
325
-
<h2>1.1 (2024-04-08)<aclass="headerlink" href="#id8" title="Link to this heading">¶</a></h2>
348
+
<sectionid="id11">
349
+
<h2>1.1 (2024-04-08)<aclass="headerlink" href="#id11" title="Link to this heading">¶</a></h2>
326
350
<ulclass="simple">
327
351
<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>
328
352
<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
@@ -331,8 +355,8 @@ <h2>1.1 (2024-04-08)<a class="headerlink" href="#id8" title="Link to this headin
331
355
<li><p>Add broadcasting support to <codeclass="docutils literal notranslate"><spanclass="pre">cross</span></code>.</p></li>
332
356
</ul>
333
357
</section>
334
-
<sectionid="id9">
335
-
<h2>1.0 (2024-01-24)<aclass="headerlink" href="#id9" title="Link to this heading">¶</a></h2>
358
+
<sectionid="id12">
359
+
<h2>1.0 (2024-01-24)<aclass="headerlink" href="#id12" title="Link to this heading">¶</a></h2>
336
360
<p>This is the first release of <codeclass="docutils literal notranslate"><spanclass="pre">array_api_strict</span></code>. It is extracted from
337
361
<codeclass="docutils literal notranslate"><spanclass="pre">numpy.array_api</span></code>, which was included as an experimental submodule in NumPy
338
362
versions prior to 2.0. Note that the commit history in this repository is
@@ -416,23 +440,28 @@ <h2>1.0 (2024-01-24)<a class="headerlink" href="#id9" title="Link to this headin
0 commit comments