|
14 | 14 | </script> |
15 | 15 |
|
16 | 16 | <meta name="viewport" content="width=device-width, initial-scale=1.0" /> |
17 | | - <title>dpnp.dpnp_array — Data Parallel Extension for NumPy 0.20.0dev0+34.gb7ff9e89f77 documentation</title> |
| 17 | + <title>dpnp.dpnp_array — Data Parallel Extension for NumPy 0.20.0dev0+37.g2df31f111a1 documentation</title> |
18 | 18 | <link rel="stylesheet" type="text/css" href="../../_static/pygments.css?v=03e43079" /> |
19 | 19 | <link rel="stylesheet" type="text/css" href="../../_static/css/theme.css?v=e59714d7" /> |
20 | 20 |
|
21 | 21 |
|
22 | 22 | <script src="../../_static/jquery.js?v=5d32c60e"></script> |
23 | 23 | <script src="../../_static/_sphinx_javascript_frameworks_compat.js?v=2cd50e6c"></script> |
24 | | - <script src="../../_static/documentation_options.js?v=a1446bdf"></script> |
| 24 | + <script src="../../_static/documentation_options.js?v=69974277"></script> |
25 | 25 | <script src="../../_static/doctools.js?v=9bcbadda"></script> |
26 | 26 | <script src="../../_static/sphinx_highlight.js?v=dc90522c"></script> |
27 | 27 | <script src="../../_static/js/theme.js"></script> |
@@ -2240,11 +2240,11 @@ <h1>Source code for dpnp.dpnp_array</h1><div class="highlight"><pre> |
2240 | 2240 | <span class="sd"> For a 1D array, ``a.tolist()`` is almost the same as ``list(a)``,</span> |
2241 | 2241 | <span class="sd"> except that ``tolist`` changes 0D arrays to Python scalars:</span> |
2242 | 2242 |
|
2243 | | -<span class="sd"> >>> import numpy as np</span> |
| 2243 | +<span class="sd"> >>> import dpnp as np</span> |
2244 | 2244 | <span class="sd"> >>> a = np.array([1, 2])</span> |
2245 | 2245 | <span class="sd"> >>> list(a)</span> |
2246 | 2246 | <span class="sd"> [array(1), array(2)]</span> |
2247 | | -<span class="sd"> >>> a_tolist = a.tolist()</span> |
| 2247 | +<span class="sd"> >>> a.tolist()</span> |
2248 | 2248 | <span class="sd"> [1, 2]</span> |
2249 | 2249 |
|
2250 | 2250 | <span class="sd"> Additionally, for a 2D array, ``tolist`` applies recursively:</span> |
|
0 commit comments