Skip to content

Commit 3864108

Browse files
implement dpnp.matvec and dpnp.vecmat (#2288)
In this PR, `dpnp.matvec` and `dpnp.vecmat` are implemented which are introduced in `numpy-2.2`. 5b140db
1 parent 9435f36 commit 3864108

File tree

706 files changed

+2353
-1485
lines changed

Some content is hidden

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

706 files changed

+2353
-1485
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: 1f72b0b94ca1cedf9d46943930a1e823
3+
config: ade69de40e727f607a086e10a8d6ba82
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.0dev5+18.g7a782ae539e documentation</title>
17+
<title>dpnp.dpnp_array &mdash; Data Parallel Extension for NumPy 0.17.0dev5+19.g5b140db2327 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=5c1c2fb1"></script>
24+
<script src="../../_static/documentation_options.js?v=3b0ebaac"></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.17.0dev5+18.g7a782ae539e documentation</title>
17+
<title>dpnp.dpnp_array_api_info &mdash; Data Parallel Extension for NumPy 0.17.0dev5+19.g5b140db2327 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=5c1c2fb1"></script>
24+
<script src="../../_static/documentation_options.js?v=3b0ebaac"></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.17.0dev5+18.g7a782ae539e documentation</title>
17+
<title>dpnp.dpnp_flatiter &mdash; Data Parallel Extension for NumPy 0.17.0dev5+19.g5b140db2327 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=5c1c2fb1"></script>
24+
<script src="../../_static/documentation_options.js?v=3b0ebaac"></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: 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+18.g7a782ae539e documentation</title>
17+
<title>dpnp.dpnp_iface &mdash; Data Parallel Extension for NumPy 0.17.0dev5+19.g5b140db2327 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=5c1c2fb1"></script>
24+
<script src="../../_static/documentation_options.js?v=3b0ebaac"></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

_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+18.g7a782ae539e documentation</title>
17+
<title>dpnp.dpnp_iface_arraycreation &mdash; Data Parallel Extension for NumPy 0.17.0dev5+19.g5b140db2327 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=5c1c2fb1"></script>
24+
<script src="../../_static/documentation_options.js?v=3b0ebaac"></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: 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+18.g7a782ae539e documentation</title>
17+
<title>dpnp.dpnp_iface_bitwise &mdash; Data Parallel Extension for NumPy 0.17.0dev5+19.g5b140db2327 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=5c1c2fb1"></script>
24+
<script src="../../_static/documentation_options.js?v=3b0ebaac"></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_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+18.g7a782ae539e documentation</title>
17+
<title>dpnp.dpnp_iface_counting &mdash; Data Parallel Extension for NumPy 0.17.0dev5+19.g5b140db2327 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=5c1c2fb1"></script>
24+
<script src="../../_static/documentation_options.js?v=3b0ebaac"></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.17.0dev5+18.g7a782ae539e documentation</title>
17+
<title>dpnp.dpnp_iface_functional &mdash; Data Parallel Extension for NumPy 0.17.0dev5+19.g5b140db2327 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=5c1c2fb1"></script>
24+
<script src="../../_static/documentation_options.js?v=3b0ebaac"></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.17.0dev5+18.g7a782ae539e documentation</title>
17+
<title>dpnp.dpnp_iface_histograms &mdash; Data Parallel Extension for NumPy 0.17.0dev5+19.g5b140db2327 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=5c1c2fb1"></script>
24+
<script src="../../_static/documentation_options.js?v=3b0ebaac"></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)