Skip to content

Commit db0b207

Browse files
implement dpnp.median (#2117)
* implement dpnp.median * use assert_dtype_allclose * add type_check=has_support_aspect64() * address comments * Update dpnp/dpnp_iface_statistics.py Co-authored-by: Anton <[email protected]> * remove a test * add new tests --------- Co-authored-by: Anton <[email protected]> 7c45c10
1 parent 3a20143 commit db0b207

File tree

566 files changed

+2157
-2177
lines changed

Some content is hidden

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

566 files changed

+2157
-2177
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: 0454516a18867729c4046df98916c7fe
3+
config: ad2c7d76b958a1d481c46074d9db0e14
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.17.0dev0+56.ga42a87f89f7 documentation</title>
17+
<title>dpnp.dpnp_array &mdash; Data Parallel Extension for NumPy 0.17.0dev0+57.g7c45c103b78 documentation</title>
1818
<link rel="stylesheet" type="text/css" href="../../_static/pygments.css?v=fa44fd50" />
1919
<link rel="stylesheet" type="text/css" href="../../_static/css/theme.css?v=7ab3649f" />
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=0ecf1635"></script>
24+
<script src="../../_static/documentation_options.js?v=8d286ba1"></script>
2525
<script src="../../_static/doctools.js?v=9a2dae69"></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.17.0dev0+56.ga42a87f89f7 documentation</title>
17+
<title>dpnp.dpnp_flatiter &mdash; Data Parallel Extension for NumPy 0.17.0dev0+57.g7c45c103b78 documentation</title>
1818
<link rel="stylesheet" type="text/css" href="../../_static/pygments.css?v=fa44fd50" />
1919
<link rel="stylesheet" type="text/css" href="../../_static/css/theme.css?v=7ab3649f" />
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=0ecf1635"></script>
24+
<script src="../../_static/documentation_options.js?v=8d286ba1"></script>
2525
<script src="../../_static/doctools.js?v=9a2dae69"></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 & 12 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.0dev0+56.ga42a87f89f7 documentation</title>
17+
<title>dpnp.dpnp_iface &mdash; Data Parallel Extension for NumPy 0.17.0dev0+57.g7c45c103b78 documentation</title>
1818
<link rel="stylesheet" type="text/css" href="../../_static/pygments.css?v=fa44fd50" />
1919
<link rel="stylesheet" type="text/css" href="../../_static/css/theme.css?v=7ab3649f" />
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=0ecf1635"></script>
24+
<script src="../../_static/documentation_options.js?v=8d286ba1"></script>
2525
<script src="../../_static/doctools.js?v=9a2dae69"></script>
2626
<script src="../../_static/sphinx_highlight.js?v=dc90522c"></script>
2727
<script src="../../_static/js/theme.js"></script>
@@ -146,7 +146,6 @@ <h1>Source code for dpnp.dpnp_iface</h1><div class="highlight"><pre>
146146
<span class="s2">&quot;as_usm_ndarray&quot;</span><span class="p">,</span>
147147
<span class="s2">&quot;check_limitations&quot;</span><span class="p">,</span>
148148
<span class="s2">&quot;check_supported_arrays_type&quot;</span><span class="p">,</span>
149-
<span class="s2">&quot;convert_single_elem_array_to_scalar&quot;</span><span class="p">,</span>
150149
<span class="s2">&quot;default_float_type&quot;</span><span class="p">,</span>
151150
<span class="s2">&quot;from_dlpack&quot;</span><span class="p">,</span>
152151
<span class="s2">&quot;get_dpnp_descriptor&quot;</span><span class="p">,</span>
@@ -498,15 +497,6 @@ <h1>Source code for dpnp.dpnp_iface</h1><div class="highlight"><pre>
498497
<span class="k">return</span> <span class="kc">True</span>
499498

500499

501-
<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>
502-
<span class="w"> </span><span class="sd">&quot;&quot;&quot;Convert array with single element to scalar.&quot;&quot;&quot;</span>
503-
504-
<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>
505-
<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>
506-
507-
<span class="k">return</span> <span class="n">obj</span>
508-
509-
510500
<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>
511501
<span class="w"> </span><span class="sd">&quot;&quot;&quot;</span>
512502
<span class="sd"> Return a floating type used by default in DPNP depending on device</span>

_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.0dev0+56.ga42a87f89f7 documentation</title>
17+
<title>dpnp.dpnp_iface_arraycreation &mdash; Data Parallel Extension for NumPy 0.17.0dev0+57.g7c45c103b78 documentation</title>
1818
<link rel="stylesheet" type="text/css" href="../../_static/pygments.css?v=fa44fd50" />
1919
<link rel="stylesheet" type="text/css" href="../../_static/css/theme.css?v=7ab3649f" />
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=0ecf1635"></script>
24+
<script src="../../_static/documentation_options.js?v=8d286ba1"></script>
2525
<script src="../../_static/doctools.js?v=9a2dae69"></script>
2626
<script src="../../_static/sphinx_highlight.js?v=dc90522c"></script>
2727
<script src="../../_static/js/theme.js"></script>

_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.0dev0+56.ga42a87f89f7 documentation</title>
17+
<title>dpnp.dpnp_iface_counting &mdash; Data Parallel Extension for NumPy 0.17.0dev0+57.g7c45c103b78 documentation</title>
1818
<link rel="stylesheet" type="text/css" href="../../_static/pygments.css?v=fa44fd50" />
1919
<link rel="stylesheet" type="text/css" href="../../_static/css/theme.css?v=7ab3649f" />
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=0ecf1635"></script>
24+
<script src="../../_static/documentation_options.js?v=8d286ba1"></script>
2525
<script src="../../_static/doctools.js?v=9a2dae69"></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.17.0dev0+56.ga42a87f89f7 documentation</title>
17+
<title>dpnp.dpnp_iface_histograms &mdash; Data Parallel Extension for NumPy 0.17.0dev0+57.g7c45c103b78 documentation</title>
1818
<link rel="stylesheet" type="text/css" href="../../_static/pygments.css?v=fa44fd50" />
1919
<link rel="stylesheet" type="text/css" href="../../_static/css/theme.css?v=7ab3649f" />
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=0ecf1635"></script>
24+
<script src="../../_static/documentation_options.js?v=8d286ba1"></script>
2525
<script src="../../_static/doctools.js?v=9a2dae69"></script>
2626
<script src="../../_static/sphinx_highlight.js?v=dc90522c"></script>
2727
<script src="../../_static/js/theme.js"></script>

_modules/dpnp/dpnp_iface_indexing.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_indexing &mdash; Data Parallel Extension for NumPy 0.17.0dev0+56.ga42a87f89f7 documentation</title>
17+
<title>dpnp.dpnp_iface_indexing &mdash; Data Parallel Extension for NumPy 0.17.0dev0+57.g7c45c103b78 documentation</title>
1818
<link rel="stylesheet" type="text/css" href="../../_static/pygments.css?v=fa44fd50" />
1919
<link rel="stylesheet" type="text/css" href="../../_static/css/theme.css?v=7ab3649f" />
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=0ecf1635"></script>
24+
<script src="../../_static/documentation_options.js?v=8d286ba1"></script>
2525
<script src="../../_static/doctools.js?v=9a2dae69"></script>
2626
<script src="../../_static/sphinx_highlight.js?v=dc90522c"></script>
2727
<script src="../../_static/js/theme.js"></script>

_modules/dpnp/dpnp_iface_libmath.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_libmath &mdash; Data Parallel Extension for NumPy 0.17.0dev0+56.ga42a87f89f7 documentation</title>
17+
<title>dpnp.dpnp_iface_libmath &mdash; Data Parallel Extension for NumPy 0.17.0dev0+57.g7c45c103b78 documentation</title>
1818
<link rel="stylesheet" type="text/css" href="../../_static/pygments.css?v=fa44fd50" />
1919
<link rel="stylesheet" type="text/css" href="../../_static/css/theme.css?v=7ab3649f" />
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=0ecf1635"></script>
24+
<script src="../../_static/documentation_options.js?v=8d286ba1"></script>
2525
<script src="../../_static/doctools.js?v=9a2dae69"></script>
2626
<script src="../../_static/sphinx_highlight.js?v=dc90522c"></script>
2727
<script src="../../_static/js/theme.js"></script>

_modules/dpnp/dpnp_iface_linearalgebra.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_linearalgebra &mdash; Data Parallel Extension for NumPy 0.17.0dev0+56.ga42a87f89f7 documentation</title>
17+
<title>dpnp.dpnp_iface_linearalgebra &mdash; Data Parallel Extension for NumPy 0.17.0dev0+57.g7c45c103b78 documentation</title>
1818
<link rel="stylesheet" type="text/css" href="../../_static/pygments.css?v=fa44fd50" />
1919
<link rel="stylesheet" type="text/css" href="../../_static/css/theme.css?v=7ab3649f" />
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=0ecf1635"></script>
24+
<script src="../../_static/documentation_options.js?v=8d286ba1"></script>
2525
<script src="../../_static/doctools.js?v=9a2dae69"></script>
2626
<script src="../../_static/sphinx_highlight.js?v=dc90522c"></script>
2727
<script src="../../_static/js/theme.js"></script>

0 commit comments

Comments
 (0)