"""
Copy the array with data type casting.
- Refer to :obj:`dpnp.astype` for full documentation.
+ For full documentation refer to :obj:`numpy.ndarray.astype`.
Parameters
----------
@@ -741,12 +741,7 @@ Source code for dpnp.dpnp_array
[docs]
def choose ( input , choices , out = None , mode = "raise" ):
-
"""
-
Construct an array from an index array and a set of arrays to choose from.
-
-
Refer to :obj:`dpnp.choose` for full documentation.
-
-
"""
+
"""Construct an array from an index array and a set of arrays to choose from."""
return dpnp . choose ( input , choices , out , mode )
@@ -772,7 +767,7 @@ Source code for dpnp.dpnp_array
"""
Complex-conjugate all elements.
- Refer to :obj:`dpnp.conjugate` for full documentation.
+ For full documentation refer to :obj:`numpy.ndarray.conj`.
"""
@@ -788,7 +783,7 @@ Source code for dpnp.dpnp_array
"""
Return the complex conjugate, element-wise.
- Refer to :obj:`dpnp.conjugate` for full documentation.
+ For full documentation refer to :obj:`numpy.ndarray.conjugate`.
"""
@@ -851,7 +846,9 @@ Source code for dpnp.dpnp_array
"""
Return the cumulative sum of the elements along the given axis.
- Refer to :obj:`dpnp.cumsum` for full documentation.
+ See Also
+ --------
+ :obj:`dpnp.cumsum`
"""
@@ -866,7 +863,9 @@ Source code for dpnp.dpnp_array
"""
Return specified diagonals.
- Refer to :obj:`dpnp.diagonal` for full documentation.
+ See Also
+ --------
+ :obj:`dpnp.diagonal`
"""
@@ -879,7 +878,7 @@ Source code for dpnp.dpnp_array
"""
Dot product of two arrays.
- Refer to :obj:`dpnp.dot` for full documentation.
+ For full documentation refer to :obj:`dpnp.dot`.
Examples
--------
@@ -1210,7 +1209,7 @@ Source code for dpnp.dpnp_array
"""
Returns the prod along a given axis.
- Refer to :obj:`dpnp.prod` for full documentation.
+ For full documentation refer to :obj:`dpnp.prod`.
"""
@@ -1223,7 +1222,7 @@ Source code for dpnp.dpnp_array
"""
Puts values of an array into another array along a given axis.
- Refer to :obj:`dpnp.put` for full documentation.
+ For full documentation refer to :obj:`numpy.put`.
"""
@@ -1236,7 +1235,7 @@ Source code for dpnp.dpnp_array
"""
Return a contiguous flattened array.
- Refer to :obj:`dpnp.ravel` for full documentation.
+ For full documentation refer to :obj:`dpnp.ravel`.
"""
@@ -1289,7 +1288,7 @@ Source code for dpnp.dpnp_array
"""
Repeat elements of an array.
- Refer to :obj:`dpnp.repeat` for full documentation.
+ For full documentation refer to :obj:`dpnp.repeat`.
"""
@@ -1302,7 +1301,7 @@ Source code for dpnp.dpnp_array
"""
Returns an array containing the same data with a new shape.
- Refer to :obj:`dpnp.reshape` for full documentation.
+ For full documentation refer to :obj:`numpy.ndarray.reshape`.
Returns
-------
@@ -1336,7 +1335,8 @@ Source code for dpnp.dpnp_array
"""
Return array with each element rounded to the given number of decimals.
- Refer to :obj:`dpnp.round` for full documentation.
+ .. seealso::
+ :obj:`dpnp.around` for full documentation.
"""
@@ -1497,7 +1497,7 @@ Source code for dpnp.dpnp_array
"""
Returns the sum along a given axis.
- Refer to :obj:`dpnp.sum` for full documentation.
+ For full documentation refer to :obj:`dpnp.sum`.
"""
@@ -1518,7 +1518,7 @@ Source code for dpnp.dpnp_array
"""
Interchange two axes of an array.
- Refer to :obj:`dpnp.swapaxes` for full documentation.
+ For full documentation refer to :obj:`numpy.swapaxes`.
"""
@@ -1531,7 +1531,7 @@ Source code for dpnp.dpnp_array
"""
Take elements from an array along an axis.
- Refer to :obj:`dpnp.take` for full documentation.
+ For full documentation refer to :obj:`numpy.take`.
"""
@@ -1552,21 +1552,31 @@ Source code for dpnp.dpnp_array
For full documentation refer to :obj:`numpy.ndarray.transpose`.
+ Parameters
+ ----------
+ axes : None, tuple or list of ints, n ints, optional
+ * ``None`` or no argument: reverses the order of the axes.
+ * tuple or list of ints: `i` in the `j`-th place in the tuple/list
+ means that the array’s `i`-th axis becomes the transposed
+ array’s `j`-th axis.
+ * n ints: same as an n-tuple/n-list of the same ints (this form is
+ intended simply as a “convenience” alternative to the tuple form).
+
Returns
-------
- y : dpnp.ndarray
+ out : dpnp.ndarray
View of the array with its axes suitably permuted.
See Also
--------
- :obj:`dpnp.transpose` : Equivalent function.
- :obj:`dpnp.ndarray.ndarray.T` : Array property returning the array transposed.
- :obj:`dpnp.ndarray.reshape` : Give a new shape to an array without changing its data.
+ :obj:`dpnp.transpose` : Equivalent function.
+ :obj:`dpnp.ndarray.ndarray.T` : Array property returning the array transposed.
+ :obj:`dpnp.ndarray.reshape` : Give a new shape to an array without changing its data.
Examples
--------
- >>> import dpnp as dp
- >>> a = dp.array([[1, 2], [3, 4]])
+ >>> import dpnp as np
+ >>> a = np.array([[1, 2], [3, 4]])
>>> a
array([[1, 2],
[3, 4]])
@@ -1577,7 +1587,7 @@ Source code for dpnp.dpnp_array
array([[1, 3],
[2, 4]])
- >>> a = dp.array([1, 2, 3, 4])
+ >>> a = np.array([1, 2, 3, 4])
>>> a
array([1, 2, 3, 4])
>>> a.transpose()
@@ -1590,7 +1600,7 @@ Source code for dpnp.dpnp_array
return self
axes_len = len ( axes )
- if axes_len == 1 and isinstance ( axes [ 0 ], tuple ):
+ if axes_len == 1 and isinstance ( axes [ 0 ], ( tuple , list )):
axes = axes [ 0 ]
res = self . __new__ ( dpnp_array )
diff --git a/_modules/dpnp/dpnp_flatiter.html b/_modules/dpnp/dpnp_flatiter.html
index 170bacf20f4..4490f7f9f85 100644
--- a/_modules/dpnp/dpnp_flatiter.html
+++ b/_modules/dpnp/dpnp_flatiter.html
@@ -12,7 +12,7 @@
- dpnp.dpnp_flatiter — Data Parallel Extension for NumPy 0.15.0dev1+10.g4de1640001 documentation
+ dpnp.dpnp_flatiter — Data Parallel Extension for NumPy 0.15.0dev1+9.g5f99f4ef35 documentation
@@ -23,7 +23,7 @@
-
+
@@ -43,7 +43,7 @@
Data Parallel Extension for NumPy
- 0.15.0dev1+10.g4de1640001
+ 0.15.0dev1+9.g5f99f4ef35