Skip to content

Commit 5f06aba

Browse files
Accept tuple value for out keyword in ufuncs (#2664)
This PR adds support for the `out` keyword to accept a tuple passed to a ufunc. The documentation of every function is updated to reflect that change. 486b00d
1 parent cfed4e6 commit 5f06aba

File tree

753 files changed

+2244
-1828
lines changed

Some content is hidden

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

753 files changed

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

_modules/dpnp/dpnp_array.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 &mdash; Data Parallel Extension for NumPy 0.20.0dev0+41.g7eed7dae56e documentation</title>
17+
<title>dpnp.dpnp_array &mdash; Data Parallel Extension for NumPy 0.20.0dev0+42.g486b00d3fe2 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=40c63f2a"></script>
24+
<script src="../../_static/documentation_options.js?v=5349d751"></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>

_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.20.0dev0+41.g7eed7dae56e documentation</title>
17+
<title>dpnp.dpnp_array_api_info &mdash; Data Parallel Extension for NumPy 0.20.0dev0+42.g486b00d3fe2 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=40c63f2a"></script>
24+
<script src="../../_static/documentation_options.js?v=5349d751"></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>

_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.20.0dev0+41.g7eed7dae56e documentation</title>
17+
<title>dpnp.dpnp_flatiter &mdash; Data Parallel Extension for NumPy 0.20.0dev0+42.g486b00d3fe2 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=40c63f2a"></script>
24+
<script src="../../_static/documentation_options.js?v=5349d751"></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>

_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.20.0dev0+41.g7eed7dae56e documentation</title>
17+
<title>dpnp.dpnp_iface &mdash; Data Parallel Extension for NumPy 0.20.0dev0+42.g486b00d3fe2 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=40c63f2a"></script>
24+
<script src="../../_static/documentation_options.js?v=5349d751"></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>

_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.20.0dev0+41.g7eed7dae56e documentation</title>
17+
<title>dpnp.dpnp_iface_arraycreation &mdash; Data Parallel Extension for NumPy 0.20.0dev0+42.g486b00d3fe2 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=40c63f2a"></script>
24+
<script src="../../_static/documentation_options.js?v=5349d751"></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>

_modules/dpnp/dpnp_iface_bitwise.html

Lines changed: 23 additions & 9 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.20.0dev0+41.g7eed7dae56e documentation</title>
17+
<title>dpnp.dpnp_iface_bitwise &mdash; Data Parallel Extension for NumPy 0.20.0dev0+42.g486b00d3fe2 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=40c63f2a"></script>
24+
<script src="../../_static/documentation_options.js?v=5349d751"></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>
@@ -232,9 +232,11 @@ <h1>Source code for dpnp.dpnp_iface_bitwise</h1><div class="highlight"><pre>
232232
<span class="s2"> First input array, expected to have an integer or boolean data type.</span>
233233
<span class="s2">x2 : {dpnp.ndarray, usm_ndarray, scalar}</span>
234234
<span class="s2"> Second input array, also expected to have an integer or boolean data type.</span>
235-
<span class="s2">out : {None, dpnp.ndarray, usm_ndarray}, optional</span>
235+
<span class="s2">out : {None, dpnp.ndarray, usm_ndarray, tuple of ndarray}, optional</span>
236236
<span class="s2"> Output array to populate.</span>
237237
<span class="s2"> Array must have the correct shape and the expected data type.</span>
238+
<span class="s2"> A tuple (possible only as a keyword argument) must have length equal to the</span>
239+
<span class="s2"> number of outputs.</span>
238240

239241
<span class="s2"> Default: ``None``.</span>
240242
<span class="s2">order : {None, &quot;C&quot;, &quot;F&quot;, &quot;A&quot;, &quot;K&quot;}, optional</span>
@@ -321,9 +323,11 @@ <h1>Source code for dpnp.dpnp_iface_bitwise</h1><div class="highlight"><pre>
321323
<span class="s2">----------</span>
322324
<span class="s2">x : {dpnp.ndarray, usm_ndarray}</span>
323325
<span class="s2"> Input array, expected to have an integer data type.</span>
324-
<span class="s2">out : {None, dpnp.ndarray, usm_ndarray}, optional</span>
326+
<span class="s2">out : {None, dpnp.ndarray, usm_ndarray, tuple of ndarray}, optional</span>
325327
<span class="s2"> Output array to populate.</span>
326328
<span class="s2"> Array must have the correct shape and the expected data type.</span>
329+
<span class="s2"> A tuple (possible only as a keyword argument) must have length equal to the</span>
330+
<span class="s2"> number of outputs.</span>
327331

328332
<span class="s2"> Default: ``None``.</span>
329333
<span class="s2">order : {None, &quot;C&quot;, &quot;F&quot;, &quot;A&quot;, &quot;K&quot;}, optional</span>
@@ -378,9 +382,11 @@ <h1>Source code for dpnp.dpnp_iface_bitwise</h1><div class="highlight"><pre>
378382
<span class="s2"> First input array, expected to have an integer or boolean data type.</span>
379383
<span class="s2">x2 : {dpnp.ndarray, usm_ndarray, scalar}</span>
380384
<span class="s2"> Second input array, also expected to have an integer or boolean data type.</span>
381-
<span class="s2">out : {None, dpnp.ndarray, usm_ndarray}, optional</span>
385+
<span class="s2">out : {None, dpnp.ndarray, usm_ndarray, tuple of ndarray}, optional</span>
382386
<span class="s2"> Output array to populate.</span>
383387
<span class="s2"> Array must have the correct shape and the expected data type.</span>
388+
<span class="s2"> A tuple (possible only as a keyword argument) must have length equal to the</span>
389+
<span class="s2"> number of outputs.</span>
384390

385391
<span class="s2"> Default: ``None``.</span>
386392
<span class="s2">order : {None, &quot;C&quot;, &quot;F&quot;, &quot;A&quot;, &quot;K&quot;}, optional</span>
@@ -462,9 +468,11 @@ <h1>Source code for dpnp.dpnp_iface_bitwise</h1><div class="highlight"><pre>
462468
<span class="s2"> First input array, expected to have an integer or boolean data type.</span>
463469
<span class="s2">x2 : {dpnp.ndarray, usm_ndarray, scalar}</span>
464470
<span class="s2"> Second input array, also expected to have an integer or boolean data type.</span>
465-
<span class="s2">out : {None, dpnp.ndarray, usm_ndarray}, optional</span>
471+
<span class="s2">out : {None, dpnp.ndarray, usm_ndarray, tuple of ndarray}, optional</span>
466472
<span class="s2"> Output array to populate.</span>
467473
<span class="s2"> Array must have the correct shape and the expected data type.</span>
474+
<span class="s2"> A tuple (possible only as a keyword argument) must have length equal to the</span>
475+
<span class="s2"> number of outputs.</span>
468476

469477
<span class="s2"> Default: ``None``.</span>
470478
<span class="s2">order : {None, &quot;C&quot;, &quot;F&quot;, &quot;A&quot;, &quot;K&quot;}, optional</span>
@@ -548,9 +556,11 @@ <h1>Source code for dpnp.dpnp_iface_bitwise</h1><div class="highlight"><pre>
548556
<span class="s2">----------</span>
549557
<span class="s2">x : {dpnp.ndarray, usm_ndarray}</span>
550558
<span class="s2"> Input array, expected to have an integer or boolean data type.</span>
551-
<span class="s2">out : {None, dpnp.ndarray, usm_ndarray}, optional</span>
559+
<span class="s2">out : {None, dpnp.ndarray, usm_ndarray, tuple of ndarray}, optional</span>
552560
<span class="s2"> Output array to populate.</span>
553561
<span class="s2"> Array must have the correct shape and the expected data type.</span>
562+
<span class="s2"> A tuple (possible only as a keyword argument) must have length equal to the</span>
563+
<span class="s2"> number of outputs.</span>
554564

555565
<span class="s2"> Default: ``None``.</span>
556566
<span class="s2">order : {None, &quot;C&quot;, &quot;F&quot;, &quot;A&quot;, &quot;K&quot;}, optional</span>
@@ -632,9 +642,11 @@ <h1>Source code for dpnp.dpnp_iface_bitwise</h1><div class="highlight"><pre>
632642
<span class="s2">x2 : {dpnp.ndarray, usm_ndarray, scalar}</span>
633643
<span class="s2"> Second input array, also expected to have an integer data type.</span>
634644
<span class="s2"> Each element must be greater than or equal to ``0``.</span>
635-
<span class="s2">out : {None, dpnp.ndarray, usm_ndarray}, optional</span>
645+
<span class="s2">out : {None, dpnp.ndarray, usm_ndarray, tuple of ndarray}, optional</span>
636646
<span class="s2"> Output array to populate.</span>
637647
<span class="s2"> Array must have the correct shape and the expected data type.</span>
648+
<span class="s2"> A tuple (possible only as a keyword argument) must have length equal to the</span>
649+
<span class="s2"> number of outputs.</span>
638650

639651
<span class="s2"> Default: ``None``.</span>
640652
<span class="s2">order : {None, &quot;C&quot;, &quot;F&quot;, &quot;A&quot;, &quot;K&quot;}, optional</span>
@@ -715,9 +727,11 @@ <h1>Source code for dpnp.dpnp_iface_bitwise</h1><div class="highlight"><pre>
715727
<span class="s2">x2 : {dpnp.ndarray, usm_ndarray, scalar}</span>
716728
<span class="s2"> Second input array, also expected to have an integer data type.</span>
717729
<span class="s2"> Each element must be greater than or equal to ``0``.</span>
718-
<span class="s2">out : {None, dpnp.ndarray, usm_ndarray}, optional</span>
730+
<span class="s2">out : {None, dpnp.ndarray, usm_ndarray, tuple of ndarray}, optional</span>
719731
<span class="s2"> Output array to populate.</span>
720732
<span class="s2"> Array must have the correct shape and the expected data type.</span>
733+
<span class="s2"> A tuple (possible only as a keyword argument) must have length equal to the</span>
734+
<span class="s2"> number of outputs.</span>
721735

722736
<span class="s2"> Default: ``None``.</span>
723737
<span class="s2">order : {None, &quot;C&quot;, &quot;F&quot;, &quot;A&quot;, &quot;K&quot;}, optional</span>

_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.20.0dev0+41.g7eed7dae56e documentation</title>
17+
<title>dpnp.dpnp_iface_counting &mdash; Data Parallel Extension for NumPy 0.20.0dev0+42.g486b00d3fe2 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=40c63f2a"></script>
24+
<script src="../../_static/documentation_options.js?v=5349d751"></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>

_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.20.0dev0+41.g7eed7dae56e documentation</title>
17+
<title>dpnp.dpnp_iface_functional &mdash; Data Parallel Extension for NumPy 0.20.0dev0+42.g486b00d3fe2 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=40c63f2a"></script>
24+
<script src="../../_static/documentation_options.js?v=5349d751"></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>

_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.20.0dev0+41.g7eed7dae56e documentation</title>
17+
<title>dpnp.dpnp_iface_histograms &mdash; Data Parallel Extension for NumPy 0.20.0dev0+42.g486b00d3fe2 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=40c63f2a"></script>
24+
<script src="../../_static/documentation_options.js?v=5349d751"></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)