Skip to content

Commit c94f70e

Browse files
committed
Deploying to gh-pages from @ ae02e78 🚀
1 parent bd25760 commit c94f70e

File tree

3 files changed

+82
-32
lines changed

3 files changed

+82
-32
lines changed

_sources/changelog.md.txt

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,30 @@
11
# Changelog
22

3+
## 2.1.1 (2024-11-07)
4+
5+
### Major Changes
6+
7+
- Remove the `__array__` method from array-api-strict arrays. This means they
8+
will no longer be implicitly converted to NumPy arrays when passed to `np`
9+
functions. This method was previously implemented as a convenience, but it
10+
isn't part of the array API standard. To portably convert an array API
11+
strict array to a NumPy array, use `np.from_dlpack(x)`
12+
13+
### Minor Changes
14+
15+
- Use a more robust implementation of `clip()` that handles corner cases better.
16+
17+
- Fix the definition of `sign()` for complex numbers when using NumPy 1.x.
18+
19+
- Correctly use the array's device when promoting scalars. (Thanks to
20+
[@betatim](https://github.com/betatim))
21+
22+
- Correctly propagate the input array's device in `asarray()`. (Thanks to
23+
[@betatim](https://github.com/betatim))
324

425
## 2.1 (2024-10-18)
526

6-
## Major Changes
27+
### Major Changes
728

829
- The default version of the array API standard is now 2023.12. 2022.12 can
930
still be enabled via the [flags API](array-api-strict-flags).

changelog.html

Lines changed: 59 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -246,10 +246,33 @@
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 (2024-10-18)<a class="headerlink" href="#id1" title="Link to this heading"></a></h2>
250-
</section>
249+
<h2>2.1.1 (2024-11-07)<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 class="simple">
253+
<li><p>Remove the <code class="docutils literal notranslate"><span class="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 <code class="docutils literal notranslate"><span class="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 <code class="docutils literal notranslate"><span class="pre">np.from_dlpack(x)</span></code></p></li>
258+
</ul>
259+
</section>
260+
<section id="minor-changes">
261+
<h3>Minor Changes<a class="headerlink" href="#minor-changes" title="Link to this heading"></a></h3>
262+
<ul class="simple">
263+
<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>
264+
<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>
265+
<li><p>Correctly use the array’s device when promoting scalars. (Thanks to
266+
<a class="reference external" href="https://github.com/betatim">&#64;betatim</a>)</p></li>
267+
<li><p>Correctly propagate the input array’s device in <code class="docutils literal notranslate"><span class="pre">asarray()</span></code>. (Thanks to
268+
<a class="reference external" href="https://github.com/betatim">&#64;betatim</a>)</p></li>
269+
</ul>
270+
</section>
271+
</section>
272+
<section id="id2">
273+
<h2>2.1 (2024-10-18)<a class="headerlink" href="#id2" title="Link to this heading"></a></h2>
274+
<section id="id3">
275+
<h3>Major Changes<a class="headerlink" href="#id3" title="Link to this heading"></a></h3>
253276
<ul class="simple">
254277
<li><p>The default version of the array API standard is now 2023.12. 2022.12 can
255278
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>
@@ -264,18 +287,19 @@ <h2>Major Changes<a class="headerlink" href="#major-changes" title="Link to this
264287
instance, implicitly combining arrays on different devices results in an
265288
exception. (Thanks to <a class="reference external" href="https://github.com/betatim">&#64;betatim</a>).</p></li>
266289
</ul>
267-
<section id="minor-changes">
268-
<h3>Minor Changes<a class="headerlink" href="#minor-changes" title="Link to this heading"></a></h3>
290+
</section>
291+
<section id="id4">
292+
<h3>Minor Changes<a class="headerlink" href="#id4" title="Link to this heading"></a></h3>
269293
<ul class="simple">
270294
<li><p>Avoid implicitly relying on <code class="docutils literal notranslate"><span class="pre">__array__</span></code> in some places. These changes should
271295
not be usef visible.</p></li>
272296
</ul>
273297
</section>
274298
</section>
275-
<section id="id2">
276-
<h2>2.0.1 (2024-07-01)<a class="headerlink" href="#id2" title="Link to this heading"></a></h2>
277-
<section id="id3">
278-
<h3>Minor Changes<a class="headerlink" href="#id3" title="Link to this heading"></a></h3>
299+
<section id="id5">
300+
<h2>2.0.1 (2024-07-01)<a class="headerlink" href="#id5" title="Link to this heading"></a></h2>
301+
<section id="id6">
302+
<h3>Minor Changes<a class="headerlink" href="#id6" title="Link to this heading"></a></h3>
279303
<ul class="simple">
280304
<li><p>Re-allow iteration on 1-D arrays. A change from 2.0 fixed iter() raising on
281305
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">
284308
</ul>
285309
</section>
286310
</section>
287-
<section id="id4">
288-
<h2>2.0 (2024-06-27)<a class="headerlink" href="#id4" title="Link to this heading"></a></h2>
289-
<section id="id5">
290-
<h3>Major Changes<a class="headerlink" href="#id5" title="Link to this heading"></a></h3>
311+
<section id="id7">
312+
<h2>2.0 (2024-06-27)<a class="headerlink" href="#id7" title="Link to this heading"></a></h2>
313+
<section id="id8">
314+
<h3>Major Changes<a class="headerlink" href="#id8" title="Link to this heading"></a></h3>
291315
<ul class="simple">
292316
<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
293317
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">
306330
change the default version to 2023.12.</p></li>
307331
</ul>
308332
</section>
309-
<section id="id6">
310-
<h3>Minor Changes<a class="headerlink" href="#id6" title="Link to this heading"></a></h3>
333+
<section id="id9">
334+
<h3>Minor Changes<a class="headerlink" href="#id9" title="Link to this heading"></a></h3>
311335
<ul class="simple">
312336
<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>
313337
<li><p>Add some missing names to <code class="docutils literal notranslate"><span class="pre">__all__</span></code>.</p></li>
314338
</ul>
315339
</section>
316340
</section>
317-
<section id="id7">
318-
<h2>1.1.1 (2024-04-29)<a class="headerlink" href="#id7" title="Link to this heading"></a></h2>
341+
<section id="id10">
342+
<h2>1.1.1 (2024-04-29)<a class="headerlink" href="#id10" title="Link to this heading"></a></h2>
319343
<ul class="simple">
320344
<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
321345
<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>
322346
</ul>
323347
</section>
324-
<section id="id8">
325-
<h2>1.1 (2024-04-08)<a class="headerlink" href="#id8" title="Link to this heading"></a></h2>
348+
<section id="id11">
349+
<h2>1.1 (2024-04-08)<a class="headerlink" href="#id11" title="Link to this heading"></a></h2>
326350
<ul class="simple">
327351
<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>
328352
<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
@@ -331,8 +355,8 @@ <h2>1.1 (2024-04-08)<a class="headerlink" href="#id8" title="Link to this headin
331355
<li><p>Add broadcasting support to <code class="docutils literal notranslate"><span class="pre">cross</span></code>.</p></li>
332356
</ul>
333357
</section>
334-
<section id="id9">
335-
<h2>1.0 (2024-01-24)<a class="headerlink" href="#id9" title="Link to this heading"></a></h2>
358+
<section id="id12">
359+
<h2>1.0 (2024-01-24)<a class="headerlink" href="#id12" title="Link to this heading"></a></h2>
336360
<p>This is the first release of <code class="docutils literal notranslate"><span class="pre">array_api_strict</span></code>. It is extracted from
337361
<code class="docutils literal notranslate"><span class="pre">numpy.array_api</span></code>, which was included as an experimental submodule in NumPy
338362
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
416440
<div class="toc-tree">
417441
<ul>
418442
<li><a class="reference internal" href="#">Changelog</a><ul>
419-
<li><a class="reference internal" href="#id1">2.1 (2024-10-18)</a></li>
420-
<li><a class="reference internal" href="#major-changes">Major Changes</a><ul>
443+
<li><a class="reference internal" href="#id1">2.1.1 (2024-11-07)</a><ul>
444+
<li><a class="reference internal" href="#major-changes">Major Changes</a></li>
421445
<li><a class="reference internal" href="#minor-changes">Minor Changes</a></li>
422446
</ul>
423447
</li>
424-
<li><a class="reference internal" href="#id2">2.0.1 (2024-07-01)</a><ul>
425-
<li><a class="reference internal" href="#id3">Minor Changes</a></li>
448+
<li><a class="reference internal" href="#id2">2.1 (2024-10-18)</a><ul>
449+
<li><a class="reference internal" href="#id3">Major Changes</a></li>
450+
<li><a class="reference internal" href="#id4">Minor Changes</a></li>
426451
</ul>
427452
</li>
428-
<li><a class="reference internal" href="#id4">2.0 (2024-06-27)</a><ul>
429-
<li><a class="reference internal" href="#id5">Major Changes</a></li>
453+
<li><a class="reference internal" href="#id5">2.0.1 (2024-07-01)</a><ul>
430454
<li><a class="reference internal" href="#id6">Minor Changes</a></li>
431455
</ul>
432456
</li>
433-
<li><a class="reference internal" href="#id7">1.1.1 (2024-04-29)</a></li>
434-
<li><a class="reference internal" href="#id8">1.1 (2024-04-08)</a></li>
435-
<li><a class="reference internal" href="#id9">1.0 (2024-01-24)</a></li>
457+
<li><a class="reference internal" href="#id7">2.0 (2024-06-27)</a><ul>
458+
<li><a class="reference internal" href="#id8">Major Changes</a></li>
459+
<li><a class="reference internal" href="#id9">Minor Changes</a></li>
460+
</ul>
461+
</li>
462+
<li><a class="reference internal" href="#id10">1.1.1 (2024-04-29)</a></li>
463+
<li><a class="reference internal" href="#id11">1.1 (2024-04-08)</a></li>
464+
<li><a class="reference internal" href="#id12">1.0 (2024-01-24)</a></li>
436465
</ul>
437466
</li>
438467
</ul>

0 commit comments

Comments
 (0)