Skip to content

Commit

Permalink
Add tests folder to dpnp conda package 25fb080
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Oct 25, 2024
1 parent a3eb760 commit d6c8529
Show file tree
Hide file tree
Showing 638 changed files with 3,941 additions and 3,498 deletions.
2 changes: 1 addition & 1 deletion pull/2116/.buildinfo
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Sphinx build info version 1
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
config: 3ff3c039482bd6bad620d6dee14c2675
config: 80b883dc4fbd5cfbb90235ded7c95d88
tags: 645f666f9bcd5a90fca523b33c5a78b7
15 changes: 10 additions & 5 deletions pull/2116/_modules/dpnp/dpnp_array.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@
</script>

<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>dpnp.dpnp_array &mdash; Data Parallel Extension for NumPy 0.17.0dev0+69.gd22f8d5af09 documentation</title>
<title>dpnp.dpnp_array &mdash; Data Parallel Extension for NumPy 0.17.0dev0+83.g25fb080b039 documentation</title>
<link rel="stylesheet" type="text/css" href="../../_static/pygments.css?v=fa44fd50" />
<link rel="stylesheet" type="text/css" href="../../_static/css/theme.css?v=7ab3649f" />


<script src="../../_static/jquery.js?v=5d32c60e"></script>
<script src="../../_static/_sphinx_javascript_frameworks_compat.js?v=2cd50e6c"></script>
<script src="../../_static/documentation_options.js?v=8f2594aa"></script>
<script src="../../_static/documentation_options.js?v=86335db5"></script>
<script src="../../_static/doctools.js?v=9a2dae69"></script>
<script src="../../_static/sphinx_highlight.js?v=dc90522c"></script>
<script src="../../_static/js/theme.js"></script>
Expand Down Expand Up @@ -1098,13 +1098,16 @@ <h1>Source code for dpnp.dpnp_array</h1><div class="highlight"><pre>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;</span>
<span class="sd"> Fill the array with a scalar value.</span>

<span class="sd"> For full documentation refer to :obj:`numpy.ndarray.fill`.</span>

<span class="sd"> Parameters</span>
<span class="sd"> ----------</span>
<span class="sd"> value : scalar</span>
<span class="sd"> value : {dpnp.ndarray, usm_ndarray, scalar}</span>
<span class="sd"> All elements of `a` will be assigned this value.</span>

<span class="sd"> Examples</span>
<span class="sd"> --------</span>
<span class="sd"> &gt;&gt;&gt; import dpnp as np</span>
<span class="sd"> &gt;&gt;&gt; a = np.array([1, 2])</span>
<span class="sd"> &gt;&gt;&gt; a.fill(0)</span>
<span class="sd"> &gt;&gt;&gt; a</span>
Expand All @@ -1116,8 +1119,10 @@ <h1>Source code for dpnp.dpnp_array</h1><div class="highlight"><pre>

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

<span class="k">for</span> <span class="n">i</span> <span class="ow">in</span> <span class="nb">range</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">size</span><span class="p">):</span>
<span class="bp">self</span><span class="o">.</span><span class="n">flat</span><span class="p">[</span><span class="n">i</span><span class="p">]</span> <span class="o">=</span> <span class="n">value</span></div>
<span class="c1"># lazy import avoids circular imports</span>
<span class="kn">from</span> <span class="nn">.dpnp_algo.dpnp_fill</span> <span class="kn">import</span> <span class="n">dpnp_fill</span>

<span class="n">dpnp_fill</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">value</span><span class="p">)</span></div>


<span class="nd">@property</span>
Expand Down
4 changes: 2 additions & 2 deletions pull/2116/_modules/dpnp/dpnp_flatiter.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@
</script>

<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>dpnp.dpnp_flatiter &mdash; Data Parallel Extension for NumPy 0.17.0dev0+69.gd22f8d5af09 documentation</title>
<title>dpnp.dpnp_flatiter &mdash; Data Parallel Extension for NumPy 0.17.0dev0+83.g25fb080b039 documentation</title>
<link rel="stylesheet" type="text/css" href="../../_static/pygments.css?v=fa44fd50" />
<link rel="stylesheet" type="text/css" href="../../_static/css/theme.css?v=7ab3649f" />


<script src="../../_static/jquery.js?v=5d32c60e"></script>
<script src="../../_static/_sphinx_javascript_frameworks_compat.js?v=2cd50e6c"></script>
<script src="../../_static/documentation_options.js?v=8f2594aa"></script>
<script src="../../_static/documentation_options.js?v=86335db5"></script>
<script src="../../_static/doctools.js?v=9a2dae69"></script>
<script src="../../_static/sphinx_highlight.js?v=dc90522c"></script>
<script src="../../_static/js/theme.js"></script>
Expand Down
14 changes: 2 additions & 12 deletions pull/2116/_modules/dpnp/dpnp_iface.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@
</script>

<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>dpnp.dpnp_iface &mdash; Data Parallel Extension for NumPy 0.17.0dev0+69.gd22f8d5af09 documentation</title>
<title>dpnp.dpnp_iface &mdash; Data Parallel Extension for NumPy 0.17.0dev0+83.g25fb080b039 documentation</title>
<link rel="stylesheet" type="text/css" href="../../_static/pygments.css?v=fa44fd50" />
<link rel="stylesheet" type="text/css" href="../../_static/css/theme.css?v=7ab3649f" />


<script src="../../_static/jquery.js?v=5d32c60e"></script>
<script src="../../_static/_sphinx_javascript_frameworks_compat.js?v=2cd50e6c"></script>
<script src="../../_static/documentation_options.js?v=8f2594aa"></script>
<script src="../../_static/documentation_options.js?v=86335db5"></script>
<script src="../../_static/doctools.js?v=9a2dae69"></script>
<script src="../../_static/sphinx_highlight.js?v=dc90522c"></script>
<script src="../../_static/js/theme.js"></script>
Expand Down Expand Up @@ -146,7 +146,6 @@ <h1>Source code for dpnp.dpnp_iface</h1><div class="highlight"><pre>
<span class="s2">&quot;as_usm_ndarray&quot;</span><span class="p">,</span>
<span class="s2">&quot;check_limitations&quot;</span><span class="p">,</span>
<span class="s2">&quot;check_supported_arrays_type&quot;</span><span class="p">,</span>
<span class="s2">&quot;convert_single_elem_array_to_scalar&quot;</span><span class="p">,</span>
<span class="s2">&quot;default_float_type&quot;</span><span class="p">,</span>
<span class="s2">&quot;from_dlpack&quot;</span><span class="p">,</span>
<span class="s2">&quot;get_dpnp_descriptor&quot;</span><span class="p">,</span>
Expand Down Expand Up @@ -498,15 +497,6 @@ <h1>Source code for dpnp.dpnp_iface</h1><div class="highlight"><pre>
<span class="k">return</span> <span class="kc">True</span>


<span class="k">def</span> <span class="nf">convert_single_elem_array_to_scalar</span><span class="p">(</span><span class="n">obj</span><span class="p">,</span> <span class="n">keepdims</span><span class="o">=</span><span class="kc">False</span><span class="p">):</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;Convert array with single element to scalar.&quot;&quot;&quot;</span>

<span class="k">if</span> <span class="p">(</span><span class="n">obj</span><span class="o">.</span><span class="n">ndim</span> <span class="o">&gt;</span> <span class="mi">0</span><span class="p">)</span> <span class="ow">and</span> <span class="p">(</span><span class="n">obj</span><span class="o">.</span><span class="n">size</span> <span class="o">==</span> <span class="mi">1</span><span class="p">)</span> <span class="ow">and</span> <span class="p">(</span><span class="n">keepdims</span> <span class="ow">is</span> <span class="kc">False</span><span class="p">):</span>
<span class="k">return</span> <span class="n">obj</span><span class="o">.</span><span class="n">dtype</span><span class="o">.</span><span class="n">type</span><span class="p">(</span><span class="n">obj</span><span class="p">[</span><span class="mi">0</span><span class="p">])</span>

<span class="k">return</span> <span class="n">obj</span>


<span class="k">def</span> <span class="nf">default_float_type</span><span class="p">(</span><span class="n">device</span><span class="o">=</span><span class="kc">None</span><span class="p">,</span> <span class="n">sycl_queue</span><span class="o">=</span><span class="kc">None</span><span class="p">):</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;</span>
<span class="sd"> Return a floating type used by default in DPNP depending on device</span>
Expand Down
4 changes: 2 additions & 2 deletions pull/2116/_modules/dpnp/dpnp_iface_arraycreation.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@
</script>

<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>dpnp.dpnp_iface_arraycreation &mdash; Data Parallel Extension for NumPy 0.17.0dev0+69.gd22f8d5af09 documentation</title>
<title>dpnp.dpnp_iface_arraycreation &mdash; Data Parallel Extension for NumPy 0.17.0dev0+83.g25fb080b039 documentation</title>
<link rel="stylesheet" type="text/css" href="../../_static/pygments.css?v=fa44fd50" />
<link rel="stylesheet" type="text/css" href="../../_static/css/theme.css?v=7ab3649f" />


<script src="../../_static/jquery.js?v=5d32c60e"></script>
<script src="../../_static/_sphinx_javascript_frameworks_compat.js?v=2cd50e6c"></script>
<script src="../../_static/documentation_options.js?v=8f2594aa"></script>
<script src="../../_static/documentation_options.js?v=86335db5"></script>
<script src="../../_static/doctools.js?v=9a2dae69"></script>
<script src="../../_static/sphinx_highlight.js?v=dc90522c"></script>
<script src="../../_static/js/theme.js"></script>
Expand Down
4 changes: 2 additions & 2 deletions pull/2116/_modules/dpnp/dpnp_iface_counting.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@
</script>

<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>dpnp.dpnp_iface_counting &mdash; Data Parallel Extension for NumPy 0.17.0dev0+69.gd22f8d5af09 documentation</title>
<title>dpnp.dpnp_iface_counting &mdash; Data Parallel Extension for NumPy 0.17.0dev0+83.g25fb080b039 documentation</title>
<link rel="stylesheet" type="text/css" href="../../_static/pygments.css?v=fa44fd50" />
<link rel="stylesheet" type="text/css" href="../../_static/css/theme.css?v=7ab3649f" />


<script src="../../_static/jquery.js?v=5d32c60e"></script>
<script src="../../_static/_sphinx_javascript_frameworks_compat.js?v=2cd50e6c"></script>
<script src="../../_static/documentation_options.js?v=8f2594aa"></script>
<script src="../../_static/documentation_options.js?v=86335db5"></script>
<script src="../../_static/doctools.js?v=9a2dae69"></script>
<script src="../../_static/sphinx_highlight.js?v=dc90522c"></script>
<script src="../../_static/js/theme.js"></script>
Expand Down
4 changes: 2 additions & 2 deletions pull/2116/_modules/dpnp/dpnp_iface_histograms.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@
</script>

<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>dpnp.dpnp_iface_histograms &mdash; Data Parallel Extension for NumPy 0.17.0dev0+69.gd22f8d5af09 documentation</title>
<title>dpnp.dpnp_iface_histograms &mdash; Data Parallel Extension for NumPy 0.17.0dev0+83.g25fb080b039 documentation</title>
<link rel="stylesheet" type="text/css" href="../../_static/pygments.css?v=fa44fd50" />
<link rel="stylesheet" type="text/css" href="../../_static/css/theme.css?v=7ab3649f" />


<script src="../../_static/jquery.js?v=5d32c60e"></script>
<script src="../../_static/_sphinx_javascript_frameworks_compat.js?v=2cd50e6c"></script>
<script src="../../_static/documentation_options.js?v=8f2594aa"></script>
<script src="../../_static/documentation_options.js?v=86335db5"></script>
<script src="../../_static/doctools.js?v=9a2dae69"></script>
<script src="../../_static/sphinx_highlight.js?v=dc90522c"></script>
<script src="../../_static/js/theme.js"></script>
Expand Down
4 changes: 2 additions & 2 deletions pull/2116/_modules/dpnp/dpnp_iface_indexing.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@
</script>

<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>dpnp.dpnp_iface_indexing &mdash; Data Parallel Extension for NumPy 0.17.0dev0+69.gd22f8d5af09 documentation</title>
<title>dpnp.dpnp_iface_indexing &mdash; Data Parallel Extension for NumPy 0.17.0dev0+83.g25fb080b039 documentation</title>
<link rel="stylesheet" type="text/css" href="../../_static/pygments.css?v=fa44fd50" />
<link rel="stylesheet" type="text/css" href="../../_static/css/theme.css?v=7ab3649f" />


<script src="../../_static/jquery.js?v=5d32c60e"></script>
<script src="../../_static/_sphinx_javascript_frameworks_compat.js?v=2cd50e6c"></script>
<script src="../../_static/documentation_options.js?v=8f2594aa"></script>
<script src="../../_static/documentation_options.js?v=86335db5"></script>
<script src="../../_static/doctools.js?v=9a2dae69"></script>
<script src="../../_static/sphinx_highlight.js?v=dc90522c"></script>
<script src="../../_static/js/theme.js"></script>
Expand Down
4 changes: 2 additions & 2 deletions pull/2116/_modules/dpnp/dpnp_iface_libmath.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@
</script>

<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>dpnp.dpnp_iface_libmath &mdash; Data Parallel Extension for NumPy 0.17.0dev0+69.gd22f8d5af09 documentation</title>
<title>dpnp.dpnp_iface_libmath &mdash; Data Parallel Extension for NumPy 0.17.0dev0+83.g25fb080b039 documentation</title>
<link rel="stylesheet" type="text/css" href="../../_static/pygments.css?v=fa44fd50" />
<link rel="stylesheet" type="text/css" href="../../_static/css/theme.css?v=7ab3649f" />


<script src="../../_static/jquery.js?v=5d32c60e"></script>
<script src="../../_static/_sphinx_javascript_frameworks_compat.js?v=2cd50e6c"></script>
<script src="../../_static/documentation_options.js?v=8f2594aa"></script>
<script src="../../_static/documentation_options.js?v=86335db5"></script>
<script src="../../_static/doctools.js?v=9a2dae69"></script>
<script src="../../_static/sphinx_highlight.js?v=dc90522c"></script>
<script src="../../_static/js/theme.js"></script>
Expand Down
4 changes: 2 additions & 2 deletions pull/2116/_modules/dpnp/dpnp_iface_linearalgebra.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@
</script>

<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>dpnp.dpnp_iface_linearalgebra &mdash; Data Parallel Extension for NumPy 0.17.0dev0+69.gd22f8d5af09 documentation</title>
<title>dpnp.dpnp_iface_linearalgebra &mdash; Data Parallel Extension for NumPy 0.17.0dev0+83.g25fb080b039 documentation</title>
<link rel="stylesheet" type="text/css" href="../../_static/pygments.css?v=fa44fd50" />
<link rel="stylesheet" type="text/css" href="../../_static/css/theme.css?v=7ab3649f" />


<script src="../../_static/jquery.js?v=5d32c60e"></script>
<script src="../../_static/_sphinx_javascript_frameworks_compat.js?v=2cd50e6c"></script>
<script src="../../_static/documentation_options.js?v=8f2594aa"></script>
<script src="../../_static/documentation_options.js?v=86335db5"></script>
<script src="../../_static/doctools.js?v=9a2dae69"></script>
<script src="../../_static/sphinx_highlight.js?v=dc90522c"></script>
<script src="../../_static/js/theme.js"></script>
Expand Down
78 changes: 76 additions & 2 deletions pull/2116/_modules/dpnp/dpnp_iface_logic.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@
</script>

<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>dpnp.dpnp_iface_logic &mdash; Data Parallel Extension for NumPy 0.17.0dev0+69.gd22f8d5af09 documentation</title>
<title>dpnp.dpnp_iface_logic &mdash; Data Parallel Extension for NumPy 0.17.0dev0+83.g25fb080b039 documentation</title>
<link rel="stylesheet" type="text/css" href="../../_static/pygments.css?v=fa44fd50" />
<link rel="stylesheet" type="text/css" href="../../_static/css/theme.css?v=7ab3649f" />


<script src="../../_static/jquery.js?v=5d32c60e"></script>
<script src="../../_static/_sphinx_javascript_frameworks_compat.js?v=2cd50e6c"></script>
<script src="../../_static/documentation_options.js?v=8f2594aa"></script>
<script src="../../_static/documentation_options.js?v=86335db5"></script>
<script src="../../_static/doctools.js?v=9a2dae69"></script>
<script src="../../_static/sphinx_highlight.js?v=dc90522c"></script>
<script src="../../_static/js/theme.js"></script>
Expand Down Expand Up @@ -149,6 +149,7 @@ <h1>Source code for dpnp.dpnp_iface_logic</h1><div class="highlight"><pre>
<span class="s2">&quot;iscomplex&quot;</span><span class="p">,</span>
<span class="s2">&quot;iscomplexobj&quot;</span><span class="p">,</span>
<span class="s2">&quot;isfinite&quot;</span><span class="p">,</span>
<span class="s2">&quot;isfortran&quot;</span><span class="p">,</span>
<span class="s2">&quot;isinf&quot;</span><span class="p">,</span>
<span class="s2">&quot;isnan&quot;</span><span class="p">,</span>
<span class="s2">&quot;isneginf&quot;</span><span class="p">,</span>
Expand Down Expand Up @@ -1100,6 +1101,79 @@ <h1>Source code for dpnp.dpnp_iface_logic</h1><div class="highlight"><pre>
<span class="p">)</span>


<div class="viewcode-block" id="isfortran">
<a class="viewcode-back" href="../../reference/generated/dpnp.isfortran.html#dpnp.isfortran">[docs]</a>
<span class="k">def</span> <span class="nf">isfortran</span><span class="p">(</span><span class="n">a</span><span class="p">):</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;</span>
<span class="sd"> Check if the array is Fortran contiguous but *not* C contiguous.</span>

<span class="sd"> This function is obsolete. If you only want to check if an array is Fortran</span>
<span class="sd"> contiguous use ``a.flags.f_contiguous`` instead.</span>

<span class="sd"> For full documentation refer to :obj:`numpy.isfortran`.</span>

<span class="sd"> Parameters</span>
<span class="sd"> ----------</span>
<span class="sd"> a : {dpnp.ndarray, usm_ndarray}</span>
<span class="sd"> Input array.</span>

<span class="sd"> Returns</span>
<span class="sd"> -------</span>
<span class="sd"> isfortran : bool</span>
<span class="sd"> Returns ``True`` if the array is Fortran contiguous</span>
<span class="sd"> but *not* C contiguous.</span>

<span class="sd"> Examples</span>
<span class="sd"> --------</span>
<span class="sd"> :obj:`dpnp.array` allows to specify whether the array is written in</span>
<span class="sd"> C-contiguous order (last index varies the fastest), or FORTRAN-contiguous</span>
<span class="sd"> order in memory (first index varies the fastest).</span>

<span class="sd"> &gt;&gt;&gt; import dpnp as np</span>
<span class="sd"> &gt;&gt;&gt; a = np.array([[1, 2, 3], [4, 5, 6]], order=&#39;C&#39;)</span>
<span class="sd"> &gt;&gt;&gt; a</span>
<span class="sd"> array([[1, 2, 3],</span>
<span class="sd"> [4, 5, 6]])</span>
<span class="sd"> &gt;&gt;&gt; np.isfortran(a)</span>
<span class="sd"> False</span>

<span class="sd"> &gt;&gt;&gt; b = np.array([[1, 2, 3], [4, 5, 6]], order=&#39;F&#39;)</span>
<span class="sd"> &gt;&gt;&gt; b</span>
<span class="sd"> array([[1, 2, 3],</span>
<span class="sd"> [4, 5, 6]])</span>
<span class="sd"> &gt;&gt;&gt; np.isfortran(b)</span>
<span class="sd"> True</span>

<span class="sd"> The transpose of a C-ordered array is a FORTRAN-ordered array.</span>

<span class="sd"> &gt;&gt;&gt; a = np.array([[1, 2, 3], [4, 5, 6]], order=&#39;C&#39;)</span>
<span class="sd"> &gt;&gt;&gt; a</span>
<span class="sd"> array([[1, 2, 3],</span>
<span class="sd"> [4, 5, 6]])</span>
<span class="sd"> &gt;&gt;&gt; np.isfortran(a)</span>
<span class="sd"> False</span>
<span class="sd"> &gt;&gt;&gt; b = a.T</span>
<span class="sd"> &gt;&gt;&gt; b</span>
<span class="sd"> array([[1, 4],</span>
<span class="sd"> [2, 5],</span>
<span class="sd"> [3, 6]])</span>
<span class="sd"> &gt;&gt;&gt; np.isfortran(b)</span>
<span class="sd"> True</span>

<span class="sd"> C-ordered arrays evaluate as ``False`` even if they are also</span>
<span class="sd"> FORTRAN-ordered.</span>

<span class="sd"> &gt;&gt;&gt; np.isfortran(np.array([1, 2], order=&#39;F&#39;))</span>
<span class="sd"> False</span>

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

<span class="n">dpnp</span><span class="o">.</span><span class="n">check_supported_arrays_type</span><span class="p">(</span><span class="n">a</span><span class="p">)</span>

<span class="k">return</span> <span class="n">a</span><span class="o">.</span><span class="n">flags</span><span class="o">.</span><span class="n">fnc</span></div>



<span class="n">_ISINF_DOCSTRING</span> <span class="o">=</span> <span class="s2">&quot;&quot;&quot;</span>
<span class="s2">Test if each element of input array is an infinity.</span>

Expand Down
Loading

0 comments on commit d6c8529

Please sign in to comment.