Skip to content

Commit 252c262

Browse files
Improve handling of large values by inverse hyperbolic and trigonometric functions e19bdef
1 parent 8287a68 commit 252c262

1,217 files changed

Lines changed: 4107 additions & 3585 deletions

File tree

Some content is hidden

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

pull/2928/.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: ccb9676684755343ce57602892065b9f
3+
config: dd2fd8ab9618cb7610062f05179f99a3
44
tags: 645f666f9bcd5a90fca523b33c5a78b7

pull/2928/_modules/dpnp/dpnp_array.html

Lines changed: 14 additions & 15 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.21.0dev1+33.g9c8422ce329 documentation</title>
17+
<title>dpnp.dpnp_array &mdash; Data Parallel Extension for NumPy 0.21.0dev2+17.ge19bdef7456 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=9edc463e" />
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=672ae725"></script>
24+
<script src="../../_static/documentation_options.js?v=55ed6351"></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>
@@ -2022,10 +2022,11 @@ <h1>Source code for dpnp.dpnp_array</h1><div class="highlight"><pre>
20222022

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

2025-
<span class="sd"> Note</span>
2026-
<span class="sd"> ----</span>
2025+
<span class="sd"> Warnings</span>
2026+
<span class="sd"> --------</span>
2027+
<span class="sd"> Setting ``a.shape`` is deprecated and may be removed in the future.</span>
20272028
<span class="sd"> Using :obj:`dpnp.ndarray.reshape` or :obj:`dpnp.reshape` is the</span>
2028-
<span class="sd"> preferred approach to set new shape of an array.</span>
2029+
<span class="sd"> preferred approach.</span>
20292030

20302031
<span class="sd"> See Also</span>
20312032
<span class="sd"> --------</span>
@@ -2043,15 +2044,6 @@ <h1>Source code for dpnp.dpnp_array</h1><div class="highlight"><pre>
20432044
<span class="sd"> &gt;&gt;&gt; y.shape</span>
20442045
<span class="sd"> (2, 3, 4)</span>
20452046

2046-
<span class="sd"> &gt;&gt;&gt; y.shape = (3, 8)</span>
2047-
<span class="sd"> &gt;&gt;&gt; y</span>
2048-
<span class="sd"> array([[ 0., 0., 0., 0., 0., 0., 0., 0.],</span>
2049-
<span class="sd"> [ 0., 0., 0., 0., 0., 0., 0., 0.],</span>
2050-
<span class="sd"> [ 0., 0., 0., 0., 0., 0., 0., 0.]])</span>
2051-
<span class="sd"> &gt;&gt;&gt; y.shape = (3, 6)</span>
2052-
<span class="sd"> ...</span>
2053-
<span class="sd"> TypeError: Can not reshape array of size 24 into (3, 6)</span>
2054-
20552047
<span class="sd"> &quot;&quot;&quot;</span>
20562048

20572049
<span class="k">return</span> <span class="bp">self</span><span class="o">.</span><span class="n">_array_obj</span><span class="o">.</span><span class="n">shape</span>
@@ -2077,8 +2069,15 @@ <h1>Source code for dpnp.dpnp_array</h1><div class="highlight"><pre>
20772069
<span class="sd"> New shape. Only non-negative values are supported. The new shape</span>
20782070
<span class="sd"> may not lead to the change in the number of elements in the array.</span>
20792071

2072+
<span class="sd"> Warnings</span>
2073+
<span class="sd"> --------</span>
2074+
<span class="sd"> Setting ``a.shape`` is deprecated and may be removed in the future.</span>
2075+
<span class="sd"> Using :obj:`dpnp.ndarray.reshape` or :obj:`dpnp.reshape` is the</span>
2076+
<span class="sd"> preferred approach.</span>
2077+
20802078
<span class="sd"> &quot;&quot;&quot;</span>
20812079

2080+
<span class="c1"># the underlying usm_ndarray shape setter raises a deprecation warning</span>
20822081
<span class="bp">self</span><span class="o">.</span><span class="n">_array_obj</span><span class="o">.</span><span class="n">shape</span> <span class="o">=</span> <span class="n">newshape</span>
20832082

20842083
<span class="nd">@property</span>
@@ -2413,7 +2412,7 @@ <h1>Source code for dpnp.dpnp_array</h1><div class="highlight"><pre>
24132412

24142413
<span class="sd"> Parameters</span>
24152414
<span class="sd"> ----------</span>
2416-
<span class="sd"> device : {None, string, SyclDevice, SyclQueue, Device}, optional</span>
2415+
<span class="sd"> device : {None, string, SyclDevice, SyclQueue, Device}</span>
24172416
<span class="sd"> An array API concept of device where the output array is created.</span>
24182417
<span class="sd"> `device` can be ``None``, a oneAPI filter selector string,</span>
24192418
<span class="sd"> an instance of :class:`dpctl.SyclDevice` corresponding to</span>

pull/2928/_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.21.0dev1+33.g9c8422ce329 documentation</title>
17+
<title>dpnp.dpnp_array_api_info &mdash; Data Parallel Extension for NumPy 0.21.0dev2+17.ge19bdef7456 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=9edc463e" />
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=672ae725"></script>
24+
<script src="../../_static/documentation_options.js?v=55ed6351"></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>

pull/2928/_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.21.0dev1+33.g9c8422ce329 documentation</title>
17+
<title>dpnp.dpnp_flatiter &mdash; Data Parallel Extension for NumPy 0.21.0dev2+17.ge19bdef7456 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=9edc463e" />
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=672ae725"></script>
24+
<script src="../../_static/documentation_options.js?v=55ed6351"></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>

pull/2928/_modules/dpnp/dpnp_iface.html

Lines changed: 5 additions & 3 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.21.0dev1+33.g9c8422ce329 documentation</title>
17+
<title>dpnp.dpnp_iface &mdash; Data Parallel Extension for NumPy 0.21.0dev2+17.ge19bdef7456 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=9edc463e" />
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=672ae725"></script>
24+
<script src="../../_static/documentation_options.js?v=55ed6351"></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>
@@ -541,6 +541,8 @@ <h1>Source code for dpnp.dpnp_iface</h1><div class="highlight"><pre>
541541
<span class="sd"> and implementing `__sycl_usm_array_interface__` protocol, an instance</span>
542542
<span class="sd"> of `numpy.ndarray`, an object supporting Python buffer protocol,</span>
543543
<span class="sd"> a Python scalar, or a (possibly nested) sequence of Python scalars.</span>
544+
545+
<span class="sd"> Default: ``None``.</span>
544546
<span class="sd"> sycl_queue : {None, class:`dpctl.SyclQueue`}, optional</span>
545547
<span class="sd"> A queue which explicitly indicates where USM allocation is done</span>
546548
<span class="sd"> and the population code (if any) is executed.</span>
@@ -592,7 +594,7 @@ <h1>Source code for dpnp.dpnp_iface</h1><div class="highlight"><pre>
592594
<span class="sd"> ----------</span>
593595
<span class="sd"> a : {dpnp.ndarray, usm_ndarray}</span>
594596
<span class="sd"> Input array.</span>
595-
<span class="sd"> out : {None, dpnp.ndarray, usm_ndarray}</span>
597+
<span class="sd"> out : {None, dpnp.ndarray, usm_ndarray}, optional</span>
596598
<span class="sd"> If provided, value of `a` array will be copied into it</span>
597599
<span class="sd"> according to ``safe`` casting rule.</span>
598600
<span class="sd"> It should be of the appropriate shape.</span>

0 commit comments

Comments
 (0)