Skip to content

Commit 59d9ea3

Browse files
Implement dpnp.isin 64b4589
1 parent d5b3c3a commit 59d9ea3

File tree

1,570 files changed

+37739
-22716
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,570 files changed

+37739
-22716
lines changed

pull/2595/.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: e716b57b54f33f5df7d9df88c2335b5c
3+
config: e498b761b54f32fe98d49838a1d9b0f1
44
tags: 645f666f9bcd5a90fca523b33c5a78b7

pull/2595/_modules/dpnp/dpnp_array.html

Lines changed: 139 additions & 22 deletions
Large diffs are not rendered by default.

pull/2595/_modules/dpnp/dpnp_array_api_info.html

Lines changed: 6 additions & 4 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.19.0dev6+5.gf615e6b5848 documentation</title>
17+
<title>dpnp.dpnp_array_api_info &mdash; Data Parallel Extension for NumPy 0.20.0dev1+7.g64b458904ac 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=5ed77ab6"></script>
24+
<script src="../../_static/documentation_options.js?v=671d0251"></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>
@@ -83,8 +83,7 @@
8383
<div itemprop="articleBody">
8484

8585
<h1>Source code for dpnp.dpnp_array_api_info</h1><div class="highlight"><pre>
86-
<span></span><span class="c1"># -*- coding: utf-8 -*-</span>
87-
<span class="c1"># *****************************************************************************</span>
86+
<span></span><span class="c1"># *****************************************************************************</span>
8887
<span class="c1"># Copyright (c) 2025, Intel Corporation</span>
8988
<span class="c1"># All rights reserved.</span>
9089
<span class="c1">#</span>
@@ -95,6 +94,9 @@ <h1>Source code for dpnp.dpnp_array_api_info</h1><div class="highlight"><pre>
9594
<span class="c1"># - Redistributions in binary form must reproduce the above copyright notice,</span>
9695
<span class="c1"># this list of conditions and the following disclaimer in the documentation</span>
9796
<span class="c1"># and/or other materials provided with the distribution.</span>
97+
<span class="c1"># - Neither the name of the copyright holder nor the names of its contributors</span>
98+
<span class="c1"># may be used to endorse or promote products derived from this software</span>
99+
<span class="c1"># without specific prior written permission.</span>
98100
<span class="c1">#</span>
99101
<span class="c1"># THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS &quot;AS IS&quot;</span>
100102
<span class="c1"># AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE</span>

pull/2595/_modules/dpnp/dpnp_flatiter.html

Lines changed: 7 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_flatiter &mdash; Data Parallel Extension for NumPy 0.19.0dev6+5.gf615e6b5848 documentation</title>
17+
<title>dpnp.dpnp_flatiter &mdash; Data Parallel Extension for NumPy 0.20.0dev1+7.g64b458904ac 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=5ed77ab6"></script>
24+
<script src="../../_static/documentation_options.js?v=671d0251"></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>
@@ -83,9 +83,8 @@
8383
<div itemprop="articleBody">
8484

8585
<h1>Source code for dpnp.dpnp_flatiter</h1><div class="highlight"><pre>
86-
<span></span><span class="c1"># -*- coding: utf-8 -*-</span>
87-
<span class="c1"># *****************************************************************************</span>
88-
<span class="c1"># Copyright (c) 2016-2025, Intel Corporation</span>
86+
<span></span><span class="c1"># *****************************************************************************</span>
87+
<span class="c1"># Copyright (c) 2016, Intel Corporation</span>
8988
<span class="c1"># All rights reserved.</span>
9089
<span class="c1">#</span>
9190
<span class="c1"># Redistribution and use in source and binary forms, with or without</span>
@@ -95,6 +94,9 @@ <h1>Source code for dpnp.dpnp_flatiter</h1><div class="highlight"><pre>
9594
<span class="c1"># - Redistributions in binary form must reproduce the above copyright notice,</span>
9695
<span class="c1"># this list of conditions and the following disclaimer in the documentation</span>
9796
<span class="c1"># and/or other materials provided with the distribution.</span>
97+
<span class="c1"># - Neither the name of the copyright holder nor the names of its contributors</span>
98+
<span class="c1"># may be used to endorse or promote products derived from this software</span>
99+
<span class="c1"># without specific prior written permission.</span>
98100
<span class="c1">#</span>
99101
<span class="c1"># THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS &quot;AS IS&quot;</span>
100102
<span class="c1"># AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE</span>

pull/2595/_modules/dpnp/dpnp_iface.html

Lines changed: 7 additions & 10 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.19.0dev6+5.gf615e6b5848 documentation</title>
17+
<title>dpnp.dpnp_iface &mdash; Data Parallel Extension for NumPy 0.20.0dev1+7.g64b458904ac 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=5ed77ab6"></script>
24+
<script src="../../_static/documentation_options.js?v=671d0251"></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>
@@ -83,9 +83,8 @@
8383
<div itemprop="articleBody">
8484

8585
<h1>Source code for dpnp.dpnp_iface</h1><div class="highlight"><pre>
86-
<span></span><span class="c1"># -*- coding: utf-8 -*-</span>
87-
<span class="c1"># *****************************************************************************</span>
88-
<span class="c1"># Copyright (c) 2016-2025, Intel Corporation</span>
86+
<span></span><span class="c1"># *****************************************************************************</span>
87+
<span class="c1"># Copyright (c) 2016, Intel Corporation</span>
8988
<span class="c1"># All rights reserved.</span>
9089
<span class="c1">#</span>
9190
<span class="c1"># Redistribution and use in source and binary forms, with or without</span>
@@ -95,6 +94,9 @@ <h1>Source code for dpnp.dpnp_iface</h1><div class="highlight"><pre>
9594
<span class="c1"># - Redistributions in binary form must reproduce the above copyright notice,</span>
9695
<span class="c1"># this list of conditions and the following disclaimer in the documentation</span>
9796
<span class="c1"># and/or other materials provided with the distribution.</span>
97+
<span class="c1"># - Neither the name of the copyright holder nor the names of its contributors</span>
98+
<span class="c1"># may be used to endorse or promote products derived from this software</span>
99+
<span class="c1"># without specific prior written permission.</span>
98100
<span class="c1">#</span>
99101
<span class="c1"># THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS &quot;AS IS&quot;</span>
100102
<span class="c1"># AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE</span>
@@ -136,11 +138,6 @@ <h1>Source code for dpnp.dpnp_iface</h1><div class="highlight"><pre>
136138
<span class="kn">import</span><span class="w"> </span><span class="nn">dpnp</span>
137139
<span class="kn">from</span><span class="w"> </span><span class="nn">dpnp.dpnp_algo</span><span class="w"> </span><span class="kn">import</span> <span class="o">*</span>
138140
<span class="kn">from</span><span class="w"> </span><span class="nn">dpnp.dpnp_array</span><span class="w"> </span><span class="kn">import</span> <span class="n">dpnp_array</span>
139-
<span class="kn">from</span><span class="w"> </span><span class="nn">dpnp.fft</span><span class="w"> </span><span class="kn">import</span> <span class="o">*</span>
140-
<span class="kn">from</span><span class="w"> </span><span class="nn">dpnp.linalg</span><span class="w"> </span><span class="kn">import</span> <span class="o">*</span>
141-
<span class="kn">from</span><span class="w"> </span><span class="nn">dpnp.memory</span><span class="w"> </span><span class="kn">import</span> <span class="o">*</span>
142-
<span class="kn">from</span><span class="w"> </span><span class="nn">dpnp.random</span><span class="w"> </span><span class="kn">import</span> <span class="o">*</span>
143-
<span class="kn">from</span><span class="w"> </span><span class="nn">dpnp.special</span><span class="w"> </span><span class="kn">import</span> <span class="o">*</span>
144141

145142
<span class="n">__all__</span> <span class="o">=</span> <span class="p">[</span>
146143
<span class="s2">&quot;are_same_logical_tensors&quot;</span><span class="p">,</span>

pull/2595/_modules/dpnp/dpnp_iface_arraycreation.html

Lines changed: 17 additions & 10 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.19.0dev6+5.gf615e6b5848 documentation</title>
17+
<title>dpnp.dpnp_iface_arraycreation &mdash; Data Parallel Extension for NumPy 0.20.0dev1+7.g64b458904ac 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=5ed77ab6"></script>
24+
<script src="../../_static/documentation_options.js?v=671d0251"></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>
@@ -83,9 +83,8 @@
8383
<div itemprop="articleBody">
8484

8585
<h1>Source code for dpnp.dpnp_iface_arraycreation</h1><div class="highlight"><pre>
86-
<span></span><span class="c1"># -*- coding: utf-8 -*-</span>
87-
<span class="c1"># *****************************************************************************</span>
88-
<span class="c1"># Copyright (c) 2016-2025, Intel Corporation</span>
86+
<span></span><span class="c1"># *****************************************************************************</span>
87+
<span class="c1"># Copyright (c) 2016, Intel Corporation</span>
8988
<span class="c1"># All rights reserved.</span>
9089
<span class="c1">#</span>
9190
<span class="c1"># Redistribution and use in source and binary forms, with or without</span>
@@ -95,6 +94,9 @@ <h1>Source code for dpnp.dpnp_iface_arraycreation</h1><div class="highlight"><pr
9594
<span class="c1"># - Redistributions in binary form must reproduce the above copyright notice,</span>
9695
<span class="c1"># this list of conditions and the following disclaimer in the documentation</span>
9796
<span class="c1"># and/or other materials provided with the distribution.</span>
97+
<span class="c1"># - Neither the name of the copyright holder nor the names of its contributors</span>
98+
<span class="c1"># may be used to endorse or promote products derived from this software</span>
99+
<span class="c1"># without specific prior written permission.</span>
98100
<span class="c1">#</span>
99101
<span class="c1"># THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS &quot;AS IS&quot;</span>
100102
<span class="c1"># AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE</span>
@@ -123,6 +125,8 @@ <h1>Source code for dpnp.dpnp_iface_arraycreation</h1><div class="highlight"><pr
123125
<span class="sd">&quot;&quot;&quot;</span>
124126

125127

128+
<span class="c1"># pylint: disable=duplicate-code</span>
129+
126130
<span class="kn">import</span><span class="w"> </span><span class="nn">operator</span>
127131

128132
<span class="kn">import</span><span class="w"> </span><span class="nn">dpctl.tensor</span><span class="w"> </span><span class="k">as</span><span class="w"> </span><span class="nn">dpt</span>
@@ -599,7 +603,6 @@ <h1>Source code for dpnp.dpnp_iface_arraycreation</h1><div class="highlight"><pr
599603
<span class="sd"> --------</span>
600604
<span class="sd"> :obj:`dpnp.asarray` : Similar function which always returns ndarrays.</span>
601605
<span class="sd"> :obj:`dpnp.ascontiguousarray` : Convert input to a contiguous array.</span>
602-
<span class="sd"> :obj:`dpnp.asfarray` : Convert input to a floating point ndarray.</span>
603606
<span class="sd"> :obj:`dpnp.asfortranarray` : Convert input to an ndarray with column-major</span>
604607
<span class="sd"> memory order.</span>
605608
<span class="sd"> :obj:`dpnp.asarray_chkfinite` : Similar function which checks input</span>
@@ -715,8 +718,7 @@ <h1>Source code for dpnp.dpnp_iface_arraycreation</h1><div class="highlight"><pr
715718
<span class="sd"> --------</span>
716719
<span class="sd"> :obj:`dpnp.asanyarray` : Similar function which passes through subclasses.</span>
717720
<span class="sd"> :obj:`dpnp.ascontiguousarray` : Convert input to a contiguous array.</span>
718-
<span class="sd"> :obj:`dpnp.asfarray` : Convert input to a floating point ndarray.</span>
719-
<span class="sd"> :obj:`dpnp.asfortranarray` : Convert input to an ndarray with column-major</span>
721+
<span class="sd"> :obj:`dpnp.asfortranarray` : Convert input to an ndarray with column-majors</span>
720722
<span class="sd"> memory order.</span>
721723
<span class="sd"> :obj:`dpnp.asarray_chkfinite` : Similar function which checks input</span>
722724
<span class="sd"> for NaNs and Infs.</span>
@@ -1826,6 +1828,8 @@ <h1>Source code for dpnp.dpnp_iface_arraycreation</h1><div class="highlight"><pr
18261828
<span class="sd"> :obj:`dpnp.fromfile` : Construct array from data in a text or binary file.</span>
18271829
<span class="sd"> :obj:`dpnp.fromiter` : Construct array from an iterable object.</span>
18281830
<span class="sd"> :obj:`dpnp.fromstring` : Construct array from the text data in a string.</span>
1831+
<span class="sd"> :obj:`ndarray.tobytes` : Construct Python bytes from the raw data bytes</span>
1832+
<span class="sd"> in the array.</span>
18291833

18301834
<span class="sd"> Examples</span>
18311835
<span class="sd"> --------</span>
@@ -2370,9 +2374,12 @@ <h1>Source code for dpnp.dpnp_iface_arraycreation</h1><div class="highlight"><pr
23702374
<span class="sd"> Raises</span>
23712375
<span class="sd"> ------</span>
23722376
<span class="sd"> TypeError</span>
2373-
<span class="sd"> if `obj` does not implement ``__dlpack__`` method</span>
2377+
<span class="sd"> If `x` does not implement ``__dlpack__`` method.</span>
23742378
<span class="sd"> ValueError</span>
2375-
<span class="sd"> if data of the input object resides on an unsupported device</span>
2379+
<span class="sd"> If data of the input object resides on an unsupported device.</span>
2380+
<span class="sd"> DLPackCreationError</span>
2381+
<span class="sd"> When `x` is allocated on a partitioned SYCL device, or with</span>
2382+
<span class="sd"> a non-default context.</span>
23762383

23772384
<span class="sd"> Notes</span>
23782385
<span class="sd"> -----</span>

0 commit comments

Comments
 (0)