Skip to content

Commit e20499f

Browse files
Add test with 0d out array for dpnp.einsum (#2987)
The PR extends tests coverage for `dpnp.einsum` and align tests names. 95d3163
1 parent b363990 commit e20499f

7 files changed

Lines changed: 8 additions & 18 deletions

File tree

_modules/dpnp/dpnp_array.html

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2933,8 +2933,6 @@ <h1>Source code for dpnp.dpnp_array</h1><div class="highlight"><pre>
29332933
<span class="k">return</span> <span class="n">dpnp</span><span class="o">.</span><span class="n">reshape</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">shape</span><span class="p">,</span> <span class="n">order</span><span class="o">=</span><span class="n">order</span><span class="p">,</span> <span class="n">copy</span><span class="o">=</span><span class="n">copy</span><span class="p">)</span></div>
29342934

29352935

2936-
<span class="c1"># &#39;resize&#39;,</span>
2937-
29382936
<div class="viewcode-block" id="dpnp_array.round">
29392937
<a class="viewcode-back" href="../../reference/generated/dpnp.dpnp_array.dpnp_array.round.html#dpnp.dpnp_array.dpnp_array.round">[docs]</a>
29402938
<span class="k">def</span><span class="w"> </span><span class="nf">round</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="o">/</span><span class="p">,</span> <span class="n">decimals</span><span class="o">=</span><span class="mi">0</span><span class="p">,</span> <span class="o">*</span><span class="p">,</span> <span class="n">out</span><span class="o">=</span><span class="kc">None</span><span class="p">):</span>

_modules/dpnp/dpnp_iface_manipulation.html

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4200,9 +4200,7 @@ <h1>Source code for dpnp.dpnp_iface_manipulation</h1><div class="highlight"><pre
42004200
<span class="sd"> Return a new array with the specified shape.</span>
42014201

42024202
<span class="sd"> If the new array is larger than the original array, then the new array is</span>
4203-
<span class="sd"> filled with repeated copies of `a`. Note that this behavior is different</span>
4204-
<span class="sd"> from ``a.resize(new_shape)`` which fills with zeros instead of repeated</span>
4205-
<span class="sd"> copies of `a`.</span>
4203+
<span class="sd"> filled with repeated copies of `a`.</span>
42064204

42074205
<span class="sd"> For full documentation refer to :obj:`numpy.resize`.</span>
42084206

@@ -4222,7 +4220,6 @@ <h1>Source code for dpnp.dpnp_iface_manipulation</h1><div class="highlight"><pre
42224220

42234221
<span class="sd"> See Also</span>
42244222
<span class="sd"> --------</span>
4225-
<span class="sd"> :obj:`dpnp.ndarray.resize` : Resize an array in-place.</span>
42264223
<span class="sd"> :obj:`dpnp.reshape` : Reshape an array without changing the total size.</span>
42274224
<span class="sd"> :obj:`dpnp.pad` : Enlarge and pad an array.</span>
42284225
<span class="sd"> :obj:`dpnp.repeat` : Repeat elements of an array.</span>

_sources/reference/ndarray.rst.txt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -168,15 +168,14 @@ Array conversion
168168
Shape manipulation
169169
------------------
170170

171-
For reshape, resize, and transpose, the single tuple argument may be
172-
replaced with ``n`` integers which will be interpreted as an n-tuple.
171+
For reshape and transpose, the single tuple argument may be replaced with ``n``
172+
integers which will be interpreted as an n-tuple.
173173

174174
.. autosummary::
175175
:toctree: generated/
176176
:nosignatures:
177177

178178
ndarray.reshape
179-
ndarray.resize
180179
ndarray.transpose
181180
ndarray.swapaxes
182181
ndarray.flatten

reference/comparison.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1040,7 +1040,7 @@
10401040
<h1>Comparison Table NumPy/ DPNP/ CuPy<a class="headerlink" href="#comparison-table-numpy-dpnp-cupy" title="Link to this heading">¶</a></h1>
10411041
<p>Here is a list of NumPy and CuPy APIs and its corresponding DPNP implementations.</p>
10421042
<p><code class="docutils literal notranslate"><span class="pre">-</span></code> in DPNP column means that DPNP implementation is not provided yet.</p>
1043-
<p><strong>NumPy(v2.5.0) / DPNP(v0.21.0dev2+9.g9154e642b41) / CuPy(v14.1.1) APIs</strong></p>
1043+
<p><strong>NumPy(v2.5.0) / DPNP(v0.21.0dev2+11.g95d316374f8) / CuPy(v14.1.1) APIs</strong></p>
10441044
<section id="summary">
10451045
<h2>Summary<a class="headerlink" href="#summary" title="Link to this heading">¶</a></h2>
10461046
<div class="table-wrapper docutils container">

reference/generated/dpnp.resize.html

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1043,9 +1043,7 @@ <h1>dpnp.resize<a class="headerlink" href="#dpnp-resize" title="Link to this hea
10431043
<span class="sig-prename descclassname"><span class="pre">dpnp.</span></span><span class="sig-name descname"><span class="pre">resize</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">a</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">new_shape</span></span></em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/dpnp/dpnp_iface_manipulation.html#resize"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#dpnp.resize" title="Link to this definition"></a></dt>
10441044
<dd><p>Return a new array with the specified shape.</p>
10451045
<p>If the new array is larger than the original array, then the new array is
1046-
filled with repeated copies of <cite>a</cite>. Note that this behavior is different
1047-
from <code class="docutils literal notranslate"><span class="pre">a.resize(new_shape)</span></code> which fills with zeros instead of repeated
1048-
copies of <cite>a</cite>.</p>
1046+
filled with repeated copies of <cite>a</cite>.</p>
10491047
<p>For full documentation refer to <a class="reference external" href="https://numpy.org/doc/stable/reference/generated/numpy.resize.html#numpy.resize" title="(in NumPy v2.5)"><code class="xref py py-obj docutils literal notranslate"><span class="pre">numpy.resize</span></code></a>.</p>
10501048
<dl class="field-list simple">
10511049
<dt class="field-odd">Parameters<span class="colon">:</span></dt>
@@ -1066,8 +1064,6 @@ <h1>dpnp.resize<a class="headerlink" href="#dpnp-resize" title="Link to this hea
10661064
<div class="admonition seealso">
10671065
<p class="admonition-title">See also</p>
10681066
<dl class="simple">
1069-
<dt><code class="xref py py-obj docutils literal notranslate"><span class="pre">dpnp.ndarray.resize</span></code></dt><dd><p>Resize an array in-place.</p>
1070-
</dd>
10711067
<dt><a class="reference internal" href="dpnp.reshape.html#dpnp.reshape" title="dpnp.reshape"><code class="xref py py-obj docutils literal notranslate"><span class="pre">dpnp.reshape</span></code></a></dt><dd><p>Reshape an array without changing the total size.</p>
10721068
</dd>
10731069
<dt><a class="reference internal" href="dpnp.pad.html#dpnp.pad" title="dpnp.pad"><code class="xref py py-obj docutils literal notranslate"><span class="pre">dpnp.pad</span></code></a></dt><dd><p>Enlarge and pad an array.</p>

reference/ndarray.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1254,8 +1254,8 @@ <h2>Array conversion<a class="headerlink" href="#array-conversion" title="Link t
12541254
</section>
12551255
<section id="shape-manipulation">
12561256
<h2>Shape manipulation<a class="headerlink" href="#shape-manipulation" title="Link to this heading"></a></h2>
1257-
<p>For reshape, resize, and transpose, the single tuple argument may be
1258-
replaced with <code class="docutils literal notranslate"><span class="pre">n</span></code> integers which will be interpreted as an n-tuple.</p>
1257+
<p>For reshape and transpose, the single tuple argument may be replaced with <code class="docutils literal notranslate"><span class="pre">n</span></code>
1258+
integers which will be interpreted as an n-tuple.</p>
12591259
<div class="table-wrapper autosummary longtable docutils container">
12601260
<table class="autosummary longtable docutils align-default">
12611261
<tbody>

searchindex.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)