Skip to content

Commit 425338f

Browse files
Implementation of dpnp.append and dpnp.asarray_chkfinite (#2015)
* implement dpnp.append * implement dpnp.asarray_chkfinite * remove limitation for array creation functions * fix pre-commit * fix failed tests * add no copy test 838dbda
1 parent fe0257e commit 425338f

File tree

518 files changed

+2728
-1587
lines changed

Some content is hidden

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

518 files changed

+2728
-1587
lines changed

.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 hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
3-
config: ccedcbc4957601ebc3336905ab6d1d90
3+
config: ad9affc1cbe5daa011cf19fa869aaa3b
44
tags: 645f666f9bcd5a90fca523b33c5a78b7

_modules/dpnp/dpnp_array.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
</script>
1313

1414
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
15-
<title>dpnp.dpnp_array &mdash; Data Parallel Extension for NumPy 0.16.0dev0+164.g2f9b2fac56f documentation</title>
15+
<title>dpnp.dpnp_array &mdash; Data Parallel Extension for NumPy 0.16.0dev0+165.g838dbda5ed6 documentation</title>
1616
<link rel="stylesheet" type="text/css" href="../../_static/pygments.css?v=fa44fd50" />
1717
<link rel="stylesheet" type="text/css" href="../../_static/css/theme.css?v=19f00094" />
1818

@@ -23,7 +23,7 @@
2323

2424
<script src="../../_static/jquery.js?v=5d32c60e"></script>
2525
<script src="../../_static/_sphinx_javascript_frameworks_compat.js?v=2cd50e6c"></script>
26-
<script src="../../_static/documentation_options.js?v=46bab002"></script>
26+
<script src="../../_static/documentation_options.js?v=bedc17ff"></script>
2727
<script src="../../_static/doctools.js?v=9a2dae69"></script>
2828
<script src="../../_static/sphinx_highlight.js?v=dc90522c"></script>
2929
<script src="../../_static/js/theme.js"></script>
@@ -43,7 +43,7 @@
4343
Data Parallel Extension for NumPy
4444
</a>
4545
<div class="version">
46-
0.16.0dev0+164.g2f9b2fac56f
46+
0.16.0dev0+165.g838dbda5ed6
4747
</div>
4848
<div role="search">
4949
<form id="rtd-search-form" class="wy-form" action="../../search.html" method="get">

_modules/dpnp/dpnp_flatiter.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
</script>
1313

1414
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
15-
<title>dpnp.dpnp_flatiter &mdash; Data Parallel Extension for NumPy 0.16.0dev0+164.g2f9b2fac56f documentation</title>
15+
<title>dpnp.dpnp_flatiter &mdash; Data Parallel Extension for NumPy 0.16.0dev0+165.g838dbda5ed6 documentation</title>
1616
<link rel="stylesheet" type="text/css" href="../../_static/pygments.css?v=fa44fd50" />
1717
<link rel="stylesheet" type="text/css" href="../../_static/css/theme.css?v=19f00094" />
1818

@@ -23,7 +23,7 @@
2323

2424
<script src="../../_static/jquery.js?v=5d32c60e"></script>
2525
<script src="../../_static/_sphinx_javascript_frameworks_compat.js?v=2cd50e6c"></script>
26-
<script src="../../_static/documentation_options.js?v=46bab002"></script>
26+
<script src="../../_static/documentation_options.js?v=bedc17ff"></script>
2727
<script src="../../_static/doctools.js?v=9a2dae69"></script>
2828
<script src="../../_static/sphinx_highlight.js?v=dc90522c"></script>
2929
<script src="../../_static/js/theme.js"></script>
@@ -43,7 +43,7 @@
4343
Data Parallel Extension for NumPy
4444
</a>
4545
<div class="version">
46-
0.16.0dev0+164.g2f9b2fac56f
46+
0.16.0dev0+165.g838dbda5ed6
4747
</div>
4848
<div role="search">
4949
<form id="rtd-search-form" class="wy-form" action="../../search.html" method="get">

_modules/dpnp/dpnp_iface.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
</script>
1313

1414
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
15-
<title>dpnp.dpnp_iface &mdash; Data Parallel Extension for NumPy 0.16.0dev0+164.g2f9b2fac56f documentation</title>
15+
<title>dpnp.dpnp_iface &mdash; Data Parallel Extension for NumPy 0.16.0dev0+165.g838dbda5ed6 documentation</title>
1616
<link rel="stylesheet" type="text/css" href="../../_static/pygments.css?v=fa44fd50" />
1717
<link rel="stylesheet" type="text/css" href="../../_static/css/theme.css?v=19f00094" />
1818

@@ -23,7 +23,7 @@
2323

2424
<script src="../../_static/jquery.js?v=5d32c60e"></script>
2525
<script src="../../_static/_sphinx_javascript_frameworks_compat.js?v=2cd50e6c"></script>
26-
<script src="../../_static/documentation_options.js?v=46bab002"></script>
26+
<script src="../../_static/documentation_options.js?v=bedc17ff"></script>
2727
<script src="../../_static/doctools.js?v=9a2dae69"></script>
2828
<script src="../../_static/sphinx_highlight.js?v=dc90522c"></script>
2929
<script src="../../_static/js/theme.js"></script>
@@ -43,7 +43,7 @@
4343
Data Parallel Extension for NumPy
4444
</a>
4545
<div class="version">
46-
0.16.0dev0+164.g2f9b2fac56f
46+
0.16.0dev0+165.g838dbda5ed6
4747
</div>
4848
<div role="search">
4949
<form id="rtd-search-form" class="wy-form" action="../../search.html" method="get">
@@ -422,7 +422,7 @@ <h1>Source code for dpnp.dpnp_iface</h1><div class="highlight"><pre>
422422
<span class="w"> </span><span class="sd">&quot;&quot;&quot;</span>
423423
<span class="sd"> Checking limitation kwargs for their supported values.</span>
424424

425-
<span class="sd"> Parameter `order` is only supported with values ``&quot;C&quot;``, ``&quot;F&quot;``</span>
425+
<span class="sd"> Parameter `order` is only supported with values ``&quot;C&quot;``, ``&quot;F&quot;``,</span>
426426
<span class="sd"> and ``None``.</span>
427427
<span class="sd"> Parameter `subok` is only supported with default value ``False``.</span>
428428
<span class="sd"> Parameter `like` is only supported with default value ``None``.</span>
@@ -439,12 +439,12 @@ <h1>Source code for dpnp.dpnp_iface</h1><div class="highlight"><pre>
439439
<span class="k">if</span> <span class="n">order</span> <span class="ow">in</span> <span class="p">(</span><span class="s2">&quot;A&quot;</span><span class="p">,</span> <span class="s2">&quot;a&quot;</span><span class="p">,</span> <span class="s2">&quot;K&quot;</span><span class="p">,</span> <span class="s2">&quot;k&quot;</span><span class="p">):</span>
440440
<span class="k">raise</span> <span class="ne">NotImplementedError</span><span class="p">(</span>
441441
<span class="s2">&quot;Keyword argument `order` is supported only with &quot;</span>
442-
<span class="sa">f</span><span class="s2">&quot;values ``&#39;C&#39;`` and ``&#39;F&#39;``, but got </span><span class="si">{</span><span class="n">order</span><span class="si">}</span><span class="s2">&quot;</span>
442+
<span class="sa">f</span><span class="s2">&quot;values &#39;C&#39; and &#39;F&#39;, but got &#39;</span><span class="si">{</span><span class="n">order</span><span class="si">}</span><span class="s2">&#39;&quot;</span>
443443
<span class="p">)</span>
444444
<span class="k">if</span> <span class="n">order</span> <span class="ow">not</span> <span class="ow">in</span> <span class="p">(</span><span class="s2">&quot;C&quot;</span><span class="p">,</span> <span class="s2">&quot;c&quot;</span><span class="p">,</span> <span class="s2">&quot;F&quot;</span><span class="p">,</span> <span class="s2">&quot;f&quot;</span><span class="p">,</span> <span class="kc">None</span><span class="p">):</span>
445445
<span class="k">raise</span> <span class="ne">ValueError</span><span class="p">(</span>
446446
<span class="s2">&quot;Unrecognized `order` keyword value, expecting &quot;</span>
447-
<span class="sa">f</span><span class="s2">&quot;``&#39;C&#39;`` or ``&#39;F&#39;``, but got </span><span class="si">{</span><span class="n">order</span><span class="si">}</span><span class="s2">&quot;</span>
447+
<span class="sa">f</span><span class="s2">&quot;&#39;C&#39; or &#39;F&#39;, but got &#39;</span><span class="si">{</span><span class="n">order</span><span class="si">}</span><span class="s2">&#39;&quot;</span>
448448
<span class="p">)</span>
449449
<span class="k">if</span> <span class="n">like</span> <span class="ow">is</span> <span class="ow">not</span> <span class="kc">None</span><span class="p">:</span>
450450
<span class="k">raise</span> <span class="ne">NotImplementedError</span><span class="p">(</span>

_modules/dpnp/dpnp_iface_arraycreation.html

Lines changed: 8 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
</script>
1313

1414
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
15-
<title>dpnp.dpnp_iface_arraycreation &mdash; Data Parallel Extension for NumPy 0.16.0dev0+164.g2f9b2fac56f documentation</title>
15+
<title>dpnp.dpnp_iface_arraycreation &mdash; Data Parallel Extension for NumPy 0.16.0dev0+165.g838dbda5ed6 documentation</title>
1616
<link rel="stylesheet" type="text/css" href="../../_static/pygments.css?v=fa44fd50" />
1717
<link rel="stylesheet" type="text/css" href="../../_static/css/theme.css?v=19f00094" />
1818

@@ -23,7 +23,7 @@
2323

2424
<script src="../../_static/jquery.js?v=5d32c60e"></script>
2525
<script src="../../_static/_sphinx_javascript_frameworks_compat.js?v=2cd50e6c"></script>
26-
<script src="../../_static/documentation_options.js?v=46bab002"></script>
26+
<script src="../../_static/documentation_options.js?v=bedc17ff"></script>
2727
<script src="../../_static/doctools.js?v=9a2dae69"></script>
2828
<script src="../../_static/sphinx_highlight.js?v=dc90522c"></script>
2929
<script src="../../_static/js/theme.js"></script>
@@ -43,7 +43,7 @@
4343
Data Parallel Extension for NumPy
4444
</a>
4545
<div class="version">
46-
0.16.0dev0+164.g2f9b2fac56f
46+
0.16.0dev0+165.g838dbda5ed6
4747
</div>
4848
<div role="search">
4949
<form id="rtd-search-form" class="wy-form" action="../../search.html" method="get">
@@ -1270,8 +1270,6 @@ <h1>Source code for dpnp.dpnp_iface_arraycreation</h1><div class="highlight"><pr
12701270

12711271
<span class="sd"> Limitations</span>
12721272
<span class="sd"> -----------</span>
1273-
<span class="sd"> Parameter `order` is supported only with values ``&quot;C&quot;``, ``&quot;F&quot;`` and</span>
1274-
<span class="sd"> ``None``.</span>
12751273
<span class="sd"> Parameter `like` is supported only with default value ``None``.</span>
12761274
<span class="sd"> Otherwise, the function raises `NotImplementedError` exception.</span>
12771275

@@ -1305,7 +1303,7 @@ <h1>Source code for dpnp.dpnp_iface_arraycreation</h1><div class="highlight"><pr
13051303

13061304
<span class="sd"> &quot;&quot;&quot;</span>
13071305

1308-
<span class="n">dpnp</span><span class="o">.</span><span class="n">check_limitations</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">like</span><span class="o">=</span><span class="n">like</span><span class="p">)</span>
1306+
<span class="n">dpnp</span><span class="o">.</span><span class="n">check_limitations</span><span class="p">(</span><span class="n">like</span><span class="o">=</span><span class="n">like</span><span class="p">)</span>
13091307

13101308
<span class="k">if</span> <span class="n">usm_type</span> <span class="ow">is</span> <span class="kc">None</span><span class="p">:</span>
13111309
<span class="n">usm_type</span> <span class="o">=</span> <span class="s2">&quot;device&quot;</span>
@@ -1498,8 +1496,6 @@ <h1>Source code for dpnp.dpnp_iface_arraycreation</h1><div class="highlight"><pr
14981496

14991497
<span class="sd"> Limitations</span>
15001498
<span class="sd"> -----------</span>
1501-
<span class="sd"> Parameter `order` is supported only with values ``&quot;C&quot;``, ``&quot;F&quot;`` and</span>
1502-
<span class="sd"> ``None``.</span>
15031499
<span class="sd"> Parameter `like` is supported only with default value ``None``.</span>
15041500
<span class="sd"> Otherwise, the function raises `NotImplementedError` exception.</span>
15051501

@@ -1539,7 +1535,7 @@ <h1>Source code for dpnp.dpnp_iface_arraycreation</h1><div class="highlight"><pr
15391535

15401536
<span class="sd"> &quot;&quot;&quot;</span>
15411537

1542-
<span class="n">dpnp</span><span class="o">.</span><span class="n">check_limitations</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">like</span><span class="o">=</span><span class="n">like</span><span class="p">)</span>
1538+
<span class="n">dpnp</span><span class="o">.</span><span class="n">check_limitations</span><span class="p">(</span><span class="n">like</span><span class="o">=</span><span class="n">like</span><span class="p">)</span>
15431539

15441540
<span class="k">if</span> <span class="n">usm_type</span> <span class="ow">is</span> <span class="kc">None</span><span class="p">:</span>
15451541
<span class="n">usm_type</span> <span class="o">=</span> <span class="s2">&quot;device&quot;</span>
@@ -2156,8 +2152,6 @@ <h1>Source code for dpnp.dpnp_iface_arraycreation</h1><div class="highlight"><pr
21562152

21572153
<span class="sd"> Limitations</span>
21582154
<span class="sd"> -----------</span>
2159-
<span class="sd"> Parameter `order` is supported only with values ``&quot;C&quot;``, ``&quot;F&quot;`` and</span>
2160-
<span class="sd"> ``None``.</span>
21612155
<span class="sd"> Parameter `like` is supported only with default value ``None``.</span>
21622156
<span class="sd"> Otherwise, the function raises `NotImplementedError` exception.</span>
21632157

@@ -2191,7 +2185,7 @@ <h1>Source code for dpnp.dpnp_iface_arraycreation</h1><div class="highlight"><pr
21912185

21922186
<span class="sd"> &quot;&quot;&quot;</span>
21932187

2194-
<span class="n">dpnp</span><span class="o">.</span><span class="n">check_limitations</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">like</span><span class="o">=</span><span class="n">like</span><span class="p">)</span>
2188+
<span class="n">dpnp</span><span class="o">.</span><span class="n">check_limitations</span><span class="p">(</span><span class="n">like</span><span class="o">=</span><span class="n">like</span><span class="p">)</span>
21952189

21962190
<span class="k">return</span> <span class="n">dpnp_container</span><span class="o">.</span><span class="n">full</span><span class="p">(</span>
21972191
<span class="n">shape</span><span class="p">,</span>
@@ -3224,8 +3218,6 @@ <h1>Source code for dpnp.dpnp_iface_arraycreation</h1><div class="highlight"><pr
32243218

32253219
<span class="sd"> Limitations</span>
32263220
<span class="sd"> -----------</span>
3227-
<span class="sd"> Parameter `order` is supported only with values ``&quot;C&quot;``, ``&quot;F&quot;`` and</span>
3228-
<span class="sd"> ``None``.</span>
32293221
<span class="sd"> Parameter `like` is supported only with default value ``None``.</span>
32303222
<span class="sd"> Otherwise, the function raises `NotImplementedError` exception.</span>
32313223

@@ -3265,7 +3257,7 @@ <h1>Source code for dpnp.dpnp_iface_arraycreation</h1><div class="highlight"><pr
32653257

32663258
<span class="sd"> &quot;&quot;&quot;</span>
32673259

3268-
<span class="n">dpnp</span><span class="o">.</span><span class="n">check_limitations</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">like</span><span class="o">=</span><span class="n">like</span><span class="p">)</span>
3260+
<span class="n">dpnp</span><span class="o">.</span><span class="n">check_limitations</span><span class="p">(</span><span class="n">like</span><span class="o">=</span><span class="n">like</span><span class="p">)</span>
32693261

32703262
<span class="k">if</span> <span class="n">usm_type</span> <span class="ow">is</span> <span class="kc">None</span><span class="p">:</span>
32713263
<span class="n">usm_type</span> <span class="o">=</span> <span class="s2">&quot;device&quot;</span>
@@ -3894,8 +3886,6 @@ <h1>Source code for dpnp.dpnp_iface_arraycreation</h1><div class="highlight"><pr
38943886

38953887
<span class="sd"> Limitations</span>
38963888
<span class="sd"> -----------</span>
3897-
<span class="sd"> Parameter `order` is supported only with values ``&quot;C&quot;``, ``&quot;F&quot;`` and</span>
3898-
<span class="sd"> ``None``.</span>
38993889
<span class="sd"> Parameter `like` is supported only with default value ``None``.</span>
39003890
<span class="sd"> Otherwise, the function raises `NotImplementedError` exception.</span>
39013891

@@ -3935,7 +3925,7 @@ <h1>Source code for dpnp.dpnp_iface_arraycreation</h1><div class="highlight"><pr
39353925

39363926
<span class="sd"> &quot;&quot;&quot;</span>
39373927

3938-
<span class="n">dpnp</span><span class="o">.</span><span class="n">check_limitations</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">like</span><span class="o">=</span><span class="n">like</span><span class="p">)</span>
3928+
<span class="n">dpnp</span><span class="o">.</span><span class="n">check_limitations</span><span class="p">(</span><span class="n">like</span><span class="o">=</span><span class="n">like</span><span class="p">)</span>
39393929

39403930
<span class="k">if</span> <span class="n">usm_type</span> <span class="ow">is</span> <span class="kc">None</span><span class="p">:</span>
39413931
<span class="n">usm_type</span> <span class="o">=</span> <span class="s2">&quot;device&quot;</span>

_modules/dpnp/dpnp_iface_counting.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
</script>
1313

1414
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
15-
<title>dpnp.dpnp_iface_counting &mdash; Data Parallel Extension for NumPy 0.16.0dev0+164.g2f9b2fac56f documentation</title>
15+
<title>dpnp.dpnp_iface_counting &mdash; Data Parallel Extension for NumPy 0.16.0dev0+165.g838dbda5ed6 documentation</title>
1616
<link rel="stylesheet" type="text/css" href="../../_static/pygments.css?v=fa44fd50" />
1717
<link rel="stylesheet" type="text/css" href="../../_static/css/theme.css?v=19f00094" />
1818

@@ -23,7 +23,7 @@
2323

2424
<script src="../../_static/jquery.js?v=5d32c60e"></script>
2525
<script src="../../_static/_sphinx_javascript_frameworks_compat.js?v=2cd50e6c"></script>
26-
<script src="../../_static/documentation_options.js?v=46bab002"></script>
26+
<script src="../../_static/documentation_options.js?v=bedc17ff"></script>
2727
<script src="../../_static/doctools.js?v=9a2dae69"></script>
2828
<script src="../../_static/sphinx_highlight.js?v=dc90522c"></script>
2929
<script src="../../_static/js/theme.js"></script>
@@ -43,7 +43,7 @@
4343
Data Parallel Extension for NumPy
4444
</a>
4545
<div class="version">
46-
0.16.0dev0+164.g2f9b2fac56f
46+
0.16.0dev0+165.g838dbda5ed6
4747
</div>
4848
<div role="search">
4949
<form id="rtd-search-form" class="wy-form" action="../../search.html" method="get">

_modules/dpnp/dpnp_iface_histograms.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
</script>
1313

1414
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
15-
<title>dpnp.dpnp_iface_histograms &mdash; Data Parallel Extension for NumPy 0.16.0dev0+164.g2f9b2fac56f documentation</title>
15+
<title>dpnp.dpnp_iface_histograms &mdash; Data Parallel Extension for NumPy 0.16.0dev0+165.g838dbda5ed6 documentation</title>
1616
<link rel="stylesheet" type="text/css" href="../../_static/pygments.css?v=fa44fd50" />
1717
<link rel="stylesheet" type="text/css" href="../../_static/css/theme.css?v=19f00094" />
1818

@@ -23,7 +23,7 @@
2323

2424
<script src="../../_static/jquery.js?v=5d32c60e"></script>
2525
<script src="../../_static/_sphinx_javascript_frameworks_compat.js?v=2cd50e6c"></script>
26-
<script src="../../_static/documentation_options.js?v=46bab002"></script>
26+
<script src="../../_static/documentation_options.js?v=bedc17ff"></script>
2727
<script src="../../_static/doctools.js?v=9a2dae69"></script>
2828
<script src="../../_static/sphinx_highlight.js?v=dc90522c"></script>
2929
<script src="../../_static/js/theme.js"></script>
@@ -43,7 +43,7 @@
4343
Data Parallel Extension for NumPy
4444
</a>
4545
<div class="version">
46-
0.16.0dev0+164.g2f9b2fac56f
46+
0.16.0dev0+165.g838dbda5ed6
4747
</div>
4848
<div role="search">
4949
<form id="rtd-search-form" class="wy-form" action="../../search.html" method="get">

0 commit comments

Comments
 (0)