Skip to content

Commit 4b1b75b

Browse files
Add integer dtypes (int8, int16, uint8-uint64) to dpnp interface 5208490
1 parent ee1cb21 commit 4b1b75b

File tree

993 files changed

+6543
-3039
lines changed

Some content is hidden

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

993 files changed

+6543
-3039
lines changed

pull/2230/.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: f94472ff80ef99de23f4bf3fe017b49f
3+
config: 9efedc38790f96b72c6cc0c3c48c8180
44
tags: 645f666f9bcd5a90fca523b33c5a78b7

pull/2230/_modules/dpnp/dpnp_array.html

Lines changed: 5 additions & 5 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_array &mdash; Data Parallel Extension for NumPy 0.17.0dev5+32.gf42fb4ac495 documentation</title>
17+
<title>dpnp.dpnp_array &mdash; Data Parallel Extension for NumPy 0.17.0dev5+36.g52084904e7e documentation</title>
1818
<link rel="stylesheet" type="text/css" href="../../_static/pygments.css?v=03e43079" />
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=e1da5ffc"></script>
24+
<script src="../../_static/documentation_options.js?v=8730062a"></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>
@@ -970,15 +970,15 @@ <h1>Source code for dpnp.dpnp_array</h1><div class="highlight"><pre>
970970

971971
<div class="viewcode-block" id="dpnp_array.choose">
972972
<a class="viewcode-back" href="../../reference/generated/dpnp.dpnp_array.dpnp_array.choose.html#dpnp.dpnp_array.dpnp_array.choose">[docs]</a>
973-
<span class="k">def</span><span class="w"> </span><span class="nf">choose</span><span class="p">(</span><span class="nb">input</span><span class="p">,</span> <span class="n">choices</span><span class="p">,</span> <span class="n">out</span><span class="o">=</span><span class="kc">None</span><span class="p">,</span> <span class="n">mode</span><span class="o">=</span><span class="s2">&quot;raise&quot;</span><span class="p">):</span>
973+
<span class="k">def</span><span class="w"> </span><span class="nf">choose</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">choices</span><span class="p">,</span> <span class="n">out</span><span class="o">=</span><span class="kc">None</span><span class="p">,</span> <span class="n">mode</span><span class="o">=</span><span class="s2">&quot;wrap&quot;</span><span class="p">):</span>
974974
<span class="w"> </span><span class="sd">&quot;&quot;&quot;</span>
975-
<span class="sd"> Construct an array from an index array and a set of arrays to choose from.</span>
975+
<span class="sd"> Use an array as index array to construct a new array from a set of choices.</span>
976976

977977
<span class="sd"> Refer to :obj:`dpnp.choose` for full documentation.</span>
978978

979979
<span class="sd"> &quot;&quot;&quot;</span>
980980

981-
<span class="k">return</span> <span class="n">dpnp</span><span class="o">.</span><span class="n">choose</span><span class="p">(</span><span class="nb">input</span><span class="p">,</span> <span class="n">choices</span><span class="p">,</span> <span class="n">out</span><span class="p">,</span> <span class="n">mode</span><span class="p">)</span></div>
981+
<span class="k">return</span> <span class="n">dpnp</span><span class="o">.</span><span class="n">choose</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">choices</span><span class="p">,</span> <span class="n">out</span><span class="p">,</span> <span class="n">mode</span><span class="p">)</span></div>
982982

983983

984984
<div class="viewcode-block" id="dpnp_array.clip">

pull/2230/_modules/dpnp/dpnp_array_api_info.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_array_api_info &mdash; Data Parallel Extension for NumPy 0.17.0dev5+32.gf42fb4ac495 documentation</title>
17+
<title>dpnp.dpnp_array_api_info &mdash; Data Parallel Extension for NumPy 0.17.0dev5+36.g52084904e7e documentation</title>
1818
<link rel="stylesheet" type="text/css" href="../../_static/pygments.css?v=03e43079" />
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=e1da5ffc"></script>
24+
<script src="../../_static/documentation_options.js?v=8730062a"></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/2230/_modules/dpnp/dpnp_flatiter.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_flatiter &mdash; Data Parallel Extension for NumPy 0.17.0dev5+32.gf42fb4ac495 documentation</title>
17+
<title>dpnp.dpnp_flatiter &mdash; Data Parallel Extension for NumPy 0.17.0dev5+36.g52084904e7e documentation</title>
1818
<link rel="stylesheet" type="text/css" href="../../_static/pygments.css?v=03e43079" />
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=e1da5ffc"></script>
24+
<script src="../../_static/documentation_options.js?v=8730062a"></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/2230/_modules/dpnp/dpnp_iface.html

Lines changed: 29 additions & 8 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.0dev5+32.gf42fb4ac495 documentation</title>
17+
<title>dpnp.dpnp_iface &mdash; Data Parallel Extension for NumPy 0.17.0dev5+36.g52084904e7e documentation</title>
1818
<link rel="stylesheet" type="text/css" href="../../_static/pygments.css?v=03e43079" />
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=e1da5ffc"></script>
24+
<script src="../../_static/documentation_options.js?v=8730062a"></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>
@@ -413,14 +413,25 @@ <h1>Source code for dpnp.dpnp_iface</h1><div class="highlight"><pre>
413413
<span class="p">)</span>
414414

415415

416-
<span class="k">def</span><span class="w"> </span><span class="nf">check_limitations</span><span class="p">(</span><span class="n">subok</span><span class="o">=</span><span class="kc">False</span><span class="p">,</span> <span class="n">like</span><span class="o">=</span><span class="kc">None</span><span class="p">,</span> <span class="n">initial</span><span class="o">=</span><span class="kc">None</span><span class="p">,</span> <span class="n">where</span><span class="o">=</span><span class="kc">True</span><span class="p">):</span>
416+
<span class="k">def</span><span class="w"> </span><span class="nf">check_limitations</span><span class="p">(</span>
417+
<span class="n">subok</span><span class="o">=</span><span class="kc">False</span><span class="p">,</span>
418+
<span class="n">like</span><span class="o">=</span><span class="kc">None</span><span class="p">,</span>
419+
<span class="n">initial</span><span class="o">=</span><span class="kc">None</span><span class="p">,</span>
420+
<span class="n">where</span><span class="o">=</span><span class="kc">True</span><span class="p">,</span>
421+
<span class="n">subok_linalg</span><span class="o">=</span><span class="kc">True</span><span class="p">,</span>
422+
<span class="n">signature</span><span class="o">=</span><span class="kc">None</span><span class="p">,</span>
423+
<span class="p">):</span>
417424
<span class="w"> </span><span class="sd">&quot;&quot;&quot;</span>
418425
<span class="sd"> Checking limitation kwargs for their supported values.</span>
419426

420-
<span class="sd"> Parameter `subok` is only supported with default value ``False``.</span>
427+
<span class="sd"> Parameter `subok` for array creation functions is only supported with</span>
428+
<span class="sd"> default value ``False``.</span>
421429
<span class="sd"> Parameter `like` is only supported with default value ``None``.</span>
422430
<span class="sd"> Parameter `initial` is only supported with default value ``None``.</span>
423431
<span class="sd"> Parameter `where` is only supported with default value ``True``.</span>
432+
<span class="sd"> Parameter `subok` for linear algebra functions, named as `subok_linalg`</span>
433+
<span class="sd"> here, and is only supported with default value ``True``.</span>
434+
<span class="sd"> Parameter `signature` is only supported with default value ``None``.</span>
424435

425436
<span class="sd"> Raises</span>
426437
<span class="sd"> ------</span>
@@ -432,22 +443,32 @@ <h1>Source code for dpnp.dpnp_iface</h1><div class="highlight"><pre>
432443
<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>
433444
<span class="k">raise</span> <span class="ne">NotImplementedError</span><span class="p">(</span>
434445
<span class="s2">&quot;Keyword argument `like` is supported only with &quot;</span>
435-
<span class="sa">f</span><span class="s2">&quot;default value ``None``, but got </span><span class="si">{</span><span class="n">like</span><span class="si">}</span><span class="s2">&quot;</span>
446+
<span class="sa">f</span><span class="s2">&quot;default value ``None``, but got </span><span class="si">{</span><span class="n">like</span><span class="si">}</span><span class="s2">.&quot;</span>
436447
<span class="p">)</span>
437448
<span class="k">if</span> <span class="n">subok</span> <span class="ow">is</span> <span class="ow">not</span> <span class="kc">False</span><span class="p">:</span>
438449
<span class="k">raise</span> <span class="ne">NotImplementedError</span><span class="p">(</span>
439450
<span class="s2">&quot;Keyword argument `subok` is supported only with &quot;</span>
440-
<span class="sa">f</span><span class="s2">&quot;default value ``False``, but got </span><span class="si">{</span><span class="n">subok</span><span class="si">}</span><span class="s2">&quot;</span>
451+
<span class="sa">f</span><span class="s2">&quot;default value ``False``, but got </span><span class="si">{</span><span class="n">subok</span><span class="si">}</span><span class="s2">.&quot;</span>
441452
<span class="p">)</span>
442453
<span class="k">if</span> <span class="n">initial</span> <span class="ow">is</span> <span class="ow">not</span> <span class="kc">None</span><span class="p">:</span>
443454
<span class="k">raise</span> <span class="ne">NotImplementedError</span><span class="p">(</span>
444455
<span class="s2">&quot;Keyword argument `initial` is only supported with &quot;</span>
445-
<span class="sa">f</span><span class="s2">&quot;default value ``None``, but got </span><span class="si">{</span><span class="n">initial</span><span class="si">}</span><span class="s2">&quot;</span>
456+
<span class="sa">f</span><span class="s2">&quot;default value ``None``, but got </span><span class="si">{</span><span class="n">initial</span><span class="si">}</span><span class="s2">.&quot;</span>
446457
<span class="p">)</span>
447458
<span class="k">if</span> <span class="n">where</span> <span class="ow">is</span> <span class="ow">not</span> <span class="kc">True</span><span class="p">:</span>
448459
<span class="k">raise</span> <span class="ne">NotImplementedError</span><span class="p">(</span>
449460
<span class="s2">&quot;Keyword argument `where` is supported only with &quot;</span>
450-
<span class="sa">f</span><span class="s2">&quot;default value ``True``, but got </span><span class="si">{</span><span class="n">where</span><span class="si">}</span><span class="s2">&quot;</span>
461+
<span class="sa">f</span><span class="s2">&quot;default value ``True``, but got </span><span class="si">{</span><span class="n">where</span><span class="si">}</span><span class="s2">.&quot;</span>
462+
<span class="p">)</span>
463+
<span class="k">if</span> <span class="ow">not</span> <span class="n">subok_linalg</span><span class="p">:</span>
464+
<span class="k">raise</span> <span class="ne">NotImplementedError</span><span class="p">(</span>
465+
<span class="s2">&quot;keyword argument `subok` is only supported with &quot;</span>
466+
<span class="sa">f</span><span class="s2">&quot;default value ``True``, but got </span><span class="si">{</span><span class="n">subok_linalg</span><span class="si">}</span><span class="s2">.&quot;</span>
467+
<span class="p">)</span>
468+
<span class="k">if</span> <span class="n">signature</span> <span class="ow">is</span> <span class="ow">not</span> <span class="kc">None</span><span class="p">:</span>
469+
<span class="k">raise</span> <span class="ne">NotImplementedError</span><span class="p">(</span>
470+
<span class="s2">&quot;keyword argument `signature` is only supported with &quot;</span>
471+
<span class="sa">f</span><span class="s2">&quot;default value ``None``, but got </span><span class="si">{</span><span class="n">signature</span><span class="si">}</span><span class="s2">.&quot;</span>
451472
<span class="p">)</span>
452473

453474

pull/2230/_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.0dev5+32.gf42fb4ac495 documentation</title>
17+
<title>dpnp.dpnp_iface_arraycreation &mdash; Data Parallel Extension for NumPy 0.17.0dev5+36.g52084904e7e documentation</title>
1818
<link rel="stylesheet" type="text/css" href="../../_static/pygments.css?v=03e43079" />
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=e1da5ffc"></script>
24+
<script src="../../_static/documentation_options.js?v=8730062a"></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/2230/_modules/dpnp/dpnp_iface_bitwise.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_bitwise &mdash; Data Parallel Extension for NumPy 0.17.0dev5+32.gf42fb4ac495 documentation</title>
17+
<title>dpnp.dpnp_iface_bitwise &mdash; Data Parallel Extension for NumPy 0.17.0dev5+36.g52084904e7e documentation</title>
1818
<link rel="stylesheet" type="text/css" href="../../_static/pygments.css?v=03e43079" />
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=e1da5ffc"></script>
24+
<script src="../../_static/documentation_options.js?v=8730062a"></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/2230/_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.0dev5+32.gf42fb4ac495 documentation</title>
17+
<title>dpnp.dpnp_iface_counting &mdash; Data Parallel Extension for NumPy 0.17.0dev5+36.g52084904e7e documentation</title>
1818
<link rel="stylesheet" type="text/css" href="../../_static/pygments.css?v=03e43079" />
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=e1da5ffc"></script>
24+
<script src="../../_static/documentation_options.js?v=8730062a"></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/2230/_modules/dpnp/dpnp_iface_functional.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_functional &mdash; Data Parallel Extension for NumPy 0.17.0dev5+32.gf42fb4ac495 documentation</title>
17+
<title>dpnp.dpnp_iface_functional &mdash; Data Parallel Extension for NumPy 0.17.0dev5+36.g52084904e7e documentation</title>
1818
<link rel="stylesheet" type="text/css" href="../../_static/pygments.css?v=03e43079" />
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=e1da5ffc"></script>
24+
<script src="../../_static/documentation_options.js?v=8730062a"></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/2230/_modules/dpnp/dpnp_iface_histograms.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_histograms &mdash; Data Parallel Extension for NumPy 0.17.0dev5+32.gf42fb4ac495 documentation</title>
17+
<title>dpnp.dpnp_iface_histograms &mdash; Data Parallel Extension for NumPy 0.17.0dev5+36.g52084904e7e documentation</title>
1818
<link rel="stylesheet" type="text/css" href="../../_static/pygments.css?v=03e43079" />
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=e1da5ffc"></script>
24+
<script src="../../_static/documentation_options.js?v=8730062a"></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)