Skip to content

Commit 50f646b

Browse files
Update doc of elementwise functions 984d836
1 parent 5ae9954 commit 50f646b

File tree

1,318 files changed

+20263
-5249
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,318 files changed

+20263
-5249
lines changed

pull/2188/.buildinfo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# Sphinx build info version 1
22
# This file records the configuration used when building these files. When it is not found, a full rebuild will be done.
3-
config: 0bb81b21a405db8326162d3720c8fdf0
3+
config: 177db6c6ce54bde0b2c81b90b7d730fd
44
tags: 645f666f9bcd5a90fca523b33c5a78b7

pull/2188/_modules/dpnp/dpnp_array.html

Lines changed: 53 additions & 80 deletions
Large diffs are not rendered by default.

pull/2188/_modules/dpnp/dpnp_flatiter.html

Lines changed: 5 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@
1414
</script>
1515

1616
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
17-
<title>dpnp.dpnp_flatiter &mdash; Data Parallel Extension for NumPy 0.17.0dev2+15.gb5173efe25e documentation</title>
17+
<title>dpnp.dpnp_flatiter &mdash; Data Parallel Extension for NumPy 0.17.0dev2+18.g984d8368529 documentation</title>
1818
<link rel="stylesheet" type="text/css" href="../../_static/pygments.css?v=fa44fd50" />
1919
<link rel="stylesheet" type="text/css" href="../../_static/css/theme.css?v=e59714d7" />
2020

2121

2222
<script src="../../_static/jquery.js?v=5d32c60e"></script>
2323
<script src="../../_static/_sphinx_javascript_frameworks_compat.js?v=2cd50e6c"></script>
24-
<script src="../../_static/documentation_options.js?v=65796854"></script>
24+
<script src="../../_static/documentation_options.js?v=33e3383a"></script>
2525
<script src="../../_static/doctools.js?v=9bcbadda"></script>
2626
<script src="../../_static/sphinx_highlight.js?v=dc90522c"></script>
2727
<script src="../../_static/js/theme.js"></script>
@@ -147,44 +147,32 @@ <h1>Source code for dpnp.dpnp_flatiter</h1><div class="highlight"><pre>
147147
<span class="n">multi_index</span><span class="p">[</span><span class="mi">0</span><span class="p">]</span> <span class="o">=</span> <span class="n">i_</span>
148148
<span class="k">return</span> <span class="nb">tuple</span><span class="p">(</span><span class="n">multi_index</span><span class="p">)</span>
149149

150-
<div class="viewcode-block" id="flatiter.__getitem__">
151-
<a class="viewcode-back" href="../../reference/generated/dpnp.flatiter.html#dpnp.flatiter.__getitem__">[docs]</a>
152150
<span class="k">def</span> <span class="fm">__getitem__</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">key</span><span class="p">):</span>
153151
<span class="n">idx</span> <span class="o">=</span> <span class="nb">getattr</span><span class="p">(</span><span class="n">key</span><span class="p">,</span> <span class="s2">&quot;__index__&quot;</span><span class="p">,</span> <span class="kc">None</span><span class="p">)</span>
154152
<span class="k">if</span> <span class="ow">not</span> <span class="nb">callable</span><span class="p">(</span><span class="n">idx</span><span class="p">):</span>
155153
<span class="k">raise</span> <span class="ne">TypeError</span><span class="p">(</span><span class="n">key</span><span class="p">)</span>
156154
<span class="n">i</span> <span class="o">=</span> <span class="n">idx</span><span class="p">()</span>
157155
<span class="n">mi</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">_multiindex</span><span class="p">(</span><span class="n">i</span><span class="p">)</span>
158-
<span class="k">return</span> <span class="bp">self</span><span class="o">.</span><span class="n">arr_</span><span class="o">.</span><span class="fm">__getitem__</span><span class="p">(</span><span class="n">mi</span><span class="p">)</span></div>
156+
<span class="k">return</span> <span class="bp">self</span><span class="o">.</span><span class="n">arr_</span><span class="o">.</span><span class="fm">__getitem__</span><span class="p">(</span><span class="n">mi</span><span class="p">)</span>
159157

160-
161-
<div class="viewcode-block" id="flatiter.__setitem__">
162-
<a class="viewcode-back" href="../../reference/generated/dpnp.flatiter.html#dpnp.flatiter.__setitem__">[docs]</a>
163158
<span class="k">def</span> <span class="fm">__setitem__</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">key</span><span class="p">,</span> <span class="n">val</span><span class="p">):</span>
164159
<span class="n">idx</span> <span class="o">=</span> <span class="nb">getattr</span><span class="p">(</span><span class="n">key</span><span class="p">,</span> <span class="s2">&quot;__index__&quot;</span><span class="p">,</span> <span class="kc">None</span><span class="p">)</span>
165160
<span class="k">if</span> <span class="ow">not</span> <span class="nb">callable</span><span class="p">(</span><span class="n">idx</span><span class="p">):</span>
166161
<span class="k">raise</span> <span class="ne">TypeError</span><span class="p">(</span><span class="n">key</span><span class="p">)</span>
167162
<span class="n">i</span> <span class="o">=</span> <span class="n">idx</span><span class="p">()</span>
168163
<span class="n">mi</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">_multiindex</span><span class="p">(</span><span class="n">i</span><span class="p">)</span>
169-
<span class="k">return</span> <span class="bp">self</span><span class="o">.</span><span class="n">arr_</span><span class="o">.</span><span class="fm">__setitem__</span><span class="p">(</span><span class="n">mi</span><span class="p">,</span> <span class="n">val</span><span class="p">)</span></div>
170-
164+
<span class="k">return</span> <span class="bp">self</span><span class="o">.</span><span class="n">arr_</span><span class="o">.</span><span class="fm">__setitem__</span><span class="p">(</span><span class="n">mi</span><span class="p">,</span> <span class="n">val</span><span class="p">)</span>
171165

172-
<div class="viewcode-block" id="flatiter.__iter__">
173-
<a class="viewcode-back" href="../../reference/generated/dpnp.flatiter.html#dpnp.flatiter.__iter__">[docs]</a>
174166
<span class="k">def</span> <span class="fm">__iter__</span><span class="p">(</span><span class="bp">self</span><span class="p">):</span>
175-
<span class="k">return</span> <span class="bp">self</span></div>
167+
<span class="k">return</span> <span class="bp">self</span>
176168

177-
178-
<div class="viewcode-block" id="flatiter.__next__">
179-
<a class="viewcode-back" href="../../reference/generated/dpnp.flatiter.html#dpnp.flatiter.__next__">[docs]</a>
180169
<span class="k">def</span> <span class="fm">__next__</span><span class="p">(</span><span class="bp">self</span><span class="p">):</span>
181170
<span class="k">if</span> <span class="bp">self</span><span class="o">.</span><span class="n">i_</span> <span class="o">&lt;</span> <span class="bp">self</span><span class="o">.</span><span class="n">size_</span><span class="p">:</span>
182171
<span class="n">val</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="fm">__getitem__</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">i_</span><span class="p">)</span>
183172
<span class="bp">self</span><span class="o">.</span><span class="n">i_</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">i_</span> <span class="o">+</span> <span class="mi">1</span>
184173
<span class="k">return</span> <span class="n">val</span>
185174
<span class="k">else</span><span class="p">:</span>
186175
<span class="k">raise</span> <span class="ne">StopIteration</span></div>
187-
</div>
188176

189177
</pre></div>
190178

pull/2188/_modules/dpnp/dpnp_iface.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@
1414
</script>
1515

1616
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
17-
<title>dpnp.dpnp_iface &mdash; Data Parallel Extension for NumPy 0.17.0dev2+15.gb5173efe25e documentation</title>
17+
<title>dpnp.dpnp_iface &mdash; Data Parallel Extension for NumPy 0.17.0dev2+18.g984d8368529 documentation</title>
1818
<link rel="stylesheet" type="text/css" href="../../_static/pygments.css?v=fa44fd50" />
1919
<link rel="stylesheet" type="text/css" href="../../_static/css/theme.css?v=e59714d7" />
2020

2121

2222
<script src="../../_static/jquery.js?v=5d32c60e"></script>
2323
<script src="../../_static/_sphinx_javascript_frameworks_compat.js?v=2cd50e6c"></script>
24-
<script src="../../_static/documentation_options.js?v=65796854"></script>
24+
<script src="../../_static/documentation_options.js?v=33e3383a"></script>
2525
<script src="../../_static/doctools.js?v=9bcbadda"></script>
2626
<script src="../../_static/sphinx_highlight.js?v=dc90522c"></script>
2727
<script src="../../_static/js/theme.js"></script>

pull/2188/_modules/dpnp/dpnp_iface_arraycreation.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@
1414
</script>
1515

1616
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
17-
<title>dpnp.dpnp_iface_arraycreation &mdash; Data Parallel Extension for NumPy 0.17.0dev2+15.gb5173efe25e documentation</title>
17+
<title>dpnp.dpnp_iface_arraycreation &mdash; Data Parallel Extension for NumPy 0.17.0dev2+18.g984d8368529 documentation</title>
1818
<link rel="stylesheet" type="text/css" href="../../_static/pygments.css?v=fa44fd50" />
1919
<link rel="stylesheet" type="text/css" href="../../_static/css/theme.css?v=e59714d7" />
2020

2121

2222
<script src="../../_static/jquery.js?v=5d32c60e"></script>
2323
<script src="../../_static/_sphinx_javascript_frameworks_compat.js?v=2cd50e6c"></script>
24-
<script src="../../_static/documentation_options.js?v=65796854"></script>
24+
<script src="../../_static/documentation_options.js?v=33e3383a"></script>
2525
<script src="../../_static/doctools.js?v=9bcbadda"></script>
2626
<script src="../../_static/sphinx_highlight.js?v=dc90522c"></script>
2727
<script src="../../_static/js/theme.js"></script>

pull/2188/_modules/dpnp/dpnp_iface_bitwise.html

Lines changed: 23 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@
1414
</script>
1515

1616
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
17-
<title>dpnp.dpnp_iface_bitwise &mdash; Data Parallel Extension for NumPy 0.17.0dev2+15.gb5173efe25e documentation</title>
17+
<title>dpnp.dpnp_iface_bitwise &mdash; Data Parallel Extension for NumPy 0.17.0dev2+18.g984d8368529 documentation</title>
1818
<link rel="stylesheet" type="text/css" href="../../_static/pygments.css?v=fa44fd50" />
1919
<link rel="stylesheet" type="text/css" href="../../_static/css/theme.css?v=e59714d7" />
2020

2121

2222
<script src="../../_static/jquery.js?v=5d32c60e"></script>
2323
<script src="../../_static/_sphinx_javascript_frameworks_compat.js?v=2cd50e6c"></script>
24-
<script src="../../_static/documentation_options.js?v=65796854"></script>
24+
<script src="../../_static/documentation_options.js?v=33e3383a"></script>
2525
<script src="../../_static/doctools.js?v=9bcbadda"></script>
2626
<script src="../../_static/sphinx_highlight.js?v=dc90522c"></script>
2727
<script src="../../_static/js/theme.js"></script>
@@ -222,15 +222,17 @@ <h1>Source code for dpnp.dpnp_iface_bitwise</h1><div class="highlight"><pre>
222222

223223
<span class="s2">Parameters</span>
224224
<span class="s2">----------</span>
225-
<span class="s2">x1, x2 : {dpnp.ndarray, usm_ndarray, scalar}</span>
226-
<span class="s2"> Input arrays, expected to have integer or boolean data type.</span>
225+
<span class="s2">x1 : {dpnp.ndarray, usm_ndarray, scalar}</span>
226+
<span class="s2"> First input array, expected to have integer or boolean data type.</span>
227227
<span class="s2"> Both inputs `x1` and `x2` can not be scalars at the same time.</span>
228+
<span class="s2">x2 : {dpnp.ndarray, usm_ndarray, scalar}</span>
229+
<span class="s2"> Second input array, also expected to have integer or boolean data</span>
230+
<span class="s2"> type. Both inputs `x1` and `x2` can not be scalars at the same time.</span>
228231
<span class="s2"> If ``x1.shape != x2.shape``, they must be broadcastable to a common shape</span>
229232
<span class="s2"> (which becomes the shape of the output).</span>
230233
<span class="s2">out : {None, dpnp.ndarray, usm_ndarray}, optional</span>
231234
<span class="s2"> Output array to populate.</span>
232-
<span class="s2"> Array must have a shape that the inputs broadcast to and</span>
233-
<span class="s2"> the expected data type.</span>
235+
<span class="s2"> Array must have the correct shape and the expected data type.</span>
234236
<span class="s2"> Default: ``None``.</span>
235237
<span class="s2">order : {&quot;C&quot;, &quot;F&quot;, &quot;A&quot;, &quot;K&quot;}, optional</span>
236238
<span class="s2"> Memory layout of the newly output array, if parameter `out` is ``None``.</span>
@@ -306,15 +308,17 @@ <h1>Source code for dpnp.dpnp_iface_bitwise</h1><div class="highlight"><pre>
306308

307309
<span class="s2">Parameters</span>
308310
<span class="s2">----------</span>
309-
<span class="s2">x1, x2 : {dpnp.ndarray, usm_ndarray, scalar}</span>
310-
<span class="s2"> Input arrays, expected to have integer or boolean data type.</span>
311+
<span class="s2">x1 : {dpnp.ndarray, usm_ndarray, scalar}</span>
312+
<span class="s2"> First input array, expected to have integer or boolean data type.</span>
311313
<span class="s2"> Both inputs `x1` and `x2` can not be scalars at the same time.</span>
314+
<span class="s2">x2 : {dpnp.ndarray, usm_ndarray, scalar}</span>
315+
<span class="s2"> Second input array, also expected to have integer or boolean data</span>
316+
<span class="s2"> type. Both inputs `x1` and `x2` can not be scalars at the same time.</span>
312317
<span class="s2"> If ``x1.shape != x2.shape``, they must be broadcastable to a common shape</span>
313318
<span class="s2"> (which becomes the shape of the output).</span>
314319
<span class="s2">out : {None, dpnp.ndarray, usm_ndarray}, optional</span>
315320
<span class="s2"> Output array to populate.</span>
316-
<span class="s2"> Array must have a shape that the inputs broadcast to and</span>
317-
<span class="s2"> the expected data type.</span>
321+
<span class="s2"> Array must have the correct shape and the expected data type.</span>
318322
<span class="s2"> Default: ``None``.</span>
319323
<span class="s2">order : {&quot;C&quot;, &quot;F&quot;, &quot;A&quot;, &quot;K&quot;}, optional</span>
320324
<span class="s2"> Memory layout of the newly output array, if parameter `out` is ``None``.</span>
@@ -381,15 +385,17 @@ <h1>Source code for dpnp.dpnp_iface_bitwise</h1><div class="highlight"><pre>
381385

382386
<span class="s2">Parameters</span>
383387
<span class="s2">----------</span>
384-
<span class="s2">x1, x2 : {dpnp.ndarray, usm_ndarray, scalar}</span>
385-
<span class="s2"> Input arrays, expected to have integer or boolean data type.</span>
388+
<span class="s2">x1 : {dpnp.ndarray, usm_ndarray, scalar}</span>
389+
<span class="s2"> First input array, expected to have integer or boolean data type.</span>
386390
<span class="s2"> Both inputs `x1` and `x2` can not be scalars at the same time.</span>
391+
<span class="s2">x2 : {dpnp.ndarray, usm_ndarray, scalar}</span>
392+
<span class="s2"> Second input array, also expected to have integer or boolean data</span>
393+
<span class="s2"> type. Both inputs `x1` and `x2` can not be scalars at the same time.</span>
387394
<span class="s2"> If ``x1.shape != x2.shape``, they must be broadcastable to a common shape</span>
388395
<span class="s2"> (which becomes the shape of the output).</span>
389396
<span class="s2">out : {None, dpnp.ndarray, usm_ndarray}, optional</span>
390397
<span class="s2"> Output array to populate.</span>
391-
<span class="s2"> Array must have a shape that the inputs broadcast to and</span>
392-
<span class="s2"> the expected data type.</span>
398+
<span class="s2"> Array must have the correct shape and the expected data type.</span>
393399
<span class="s2"> Default: ``None``.</span>
394400
<span class="s2">order : {&quot;C&quot;, &quot;F&quot;, &quot;A&quot;, &quot;K&quot;}, optional</span>
395401
<span class="s2"> Memory layout of the newly output array, if parameter `out` is ``None``.</span>
@@ -464,8 +470,7 @@ <h1>Source code for dpnp.dpnp_iface_bitwise</h1><div class="highlight"><pre>
464470
<span class="s2"> Input array, expected to have integer or boolean data type.</span>
465471
<span class="s2">out : {None, dpnp.ndarray, usm_ndarray}, optional</span>
466472
<span class="s2"> Output array to populate.</span>
467-
<span class="s2"> Array must have a shape that the input broadcast to and</span>
468-
<span class="s2"> the expected data type.</span>
473+
<span class="s2"> Array must have the correct shape and the expected data type.</span>
469474
<span class="s2"> Default: ``None``.</span>
470475
<span class="s2">order : {&quot;C&quot;, &quot;F&quot;, &quot;A&quot;, &quot;K&quot;}, optional</span>
471476
<span class="s2"> Memory layout of the newly output array, if parameter `out` is ``None``.</span>
@@ -551,8 +556,7 @@ <h1>Source code for dpnp.dpnp_iface_bitwise</h1><div class="highlight"><pre>
551556
<span class="s2"> (which becomes the shape of the output).</span>
552557
<span class="s2">out : {None, dpnp.ndarray, usm_ndarray}, optional</span>
553558
<span class="s2"> Output array to populate.</span>
554-
<span class="s2"> Array must have a shape that the inputs broadcast to and</span>
555-
<span class="s2"> the expected data type.</span>
559+
<span class="s2"> Array must have the correct shape and the expected data type.</span>
556560
<span class="s2"> Default: ``None``.</span>
557561
<span class="s2">order : {&quot;C&quot;, &quot;F&quot;, &quot;A&quot;, &quot;K&quot;}, optional</span>
558562
<span class="s2"> Memory layout of the newly output array, if parameter `out` is ``None``.</span>
@@ -628,8 +632,7 @@ <h1>Source code for dpnp.dpnp_iface_bitwise</h1><div class="highlight"><pre>
628632
<span class="s2"> (which becomes the shape of the output).</span>
629633
<span class="s2">out : {None, dpnp.ndarray, usm_ndarray}, optional</span>
630634
<span class="s2"> Output array to populate.</span>
631-
<span class="s2"> Array must have a shape that the inputs broadcast to and</span>
632-
<span class="s2"> the expected data type.</span>
635+
<span class="s2"> Array must have the correct shape and the expected data type.</span>
633636
<span class="s2"> Default: ``None``.</span>
634637
<span class="s2">order : {&quot;C&quot;, &quot;F&quot;, &quot;A&quot;, &quot;K&quot;}, optional</span>
635638
<span class="s2"> Memory layout of the newly output array, if parameter `out` is ``None``.</span>

pull/2188/_modules/dpnp/dpnp_iface_counting.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@
1414
</script>
1515

1616
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
17-
<title>dpnp.dpnp_iface_counting &mdash; Data Parallel Extension for NumPy 0.17.0dev2+15.gb5173efe25e documentation</title>
17+
<title>dpnp.dpnp_iface_counting &mdash; Data Parallel Extension for NumPy 0.17.0dev2+18.g984d8368529 documentation</title>
1818
<link rel="stylesheet" type="text/css" href="../../_static/pygments.css?v=fa44fd50" />
1919
<link rel="stylesheet" type="text/css" href="../../_static/css/theme.css?v=e59714d7" />
2020

2121

2222
<script src="../../_static/jquery.js?v=5d32c60e"></script>
2323
<script src="../../_static/_sphinx_javascript_frameworks_compat.js?v=2cd50e6c"></script>
24-
<script src="../../_static/documentation_options.js?v=65796854"></script>
24+
<script src="../../_static/documentation_options.js?v=33e3383a"></script>
2525
<script src="../../_static/doctools.js?v=9bcbadda"></script>
2626
<script src="../../_static/sphinx_highlight.js?v=dc90522c"></script>
2727
<script src="../../_static/js/theme.js"></script>

0 commit comments

Comments
 (0)