@@ -147,7 +147,7 @@ def __array__(self, dtype=None, /, *, copy=None):
147
147
148
148
def __array_namespace__ (self , / , * , api_version = None ):
149
149
"""
150
- Returns array namespace, member functions of which implement data API.
150
+ Return array namespace, member functions of which implement data API.
151
151
152
152
Parameters
153
153
----------
@@ -196,7 +196,7 @@ def __contains__(self, value, /):
196
196
197
197
def __copy__ (self ):
198
198
"""
199
- Used if :func:`copy.copy` is called on an array. Returns a copy of the
199
+ Used if :func:`copy.copy` is called on an array. Return a copy of the
200
200
array.
201
201
202
202
Equivalent to ``a.copy(order="K")``.
@@ -214,7 +214,7 @@ def __dlpack__(
214
214
self , / , * , stream = None , max_version = None , dl_device = None , copy = None
215
215
):
216
216
"""
217
- Produces DLPack capsule.
217
+ Produce DLPack capsule.
218
218
219
219
Parameters
220
220
----------
@@ -271,7 +271,7 @@ def __dlpack__(
271
271
272
272
def __dlpack_device__ (self , / ):
273
273
"""
274
- Gives a tuple (``device_type``, ``device_id``) corresponding to
274
+ Give a tuple (``device_type``, ``device_id``) corresponding to
275
275
``DLDevice`` entry in ``DLTensor`` in DLPack protocol.
276
276
277
277
The tuple describes the non-partitioned device where the array has been
@@ -623,7 +623,7 @@ def _create_from_usm_ndarray(usm_ary: dpt.usm_ndarray):
623
623
624
624
def all (self , axis = None , * , out = None , keepdims = False , where = True ):
625
625
"""
626
- Returns ``True`` if all elements evaluate to ``True.``
626
+ Return ``True`` if all elements evaluate to ``True.``
627
627
628
628
Refer to :obj:`dpnp.all` for full documentation.
629
629
@@ -639,7 +639,7 @@ def all(self, axis=None, *, out=None, keepdims=False, where=True):
639
639
640
640
def any (self , axis = None , * , out = None , keepdims = False , where = True ):
641
641
"""
642
- Returns ``True`` if any of the elements of `a` evaluate to ``True``.
642
+ Return ``True`` if any of the elements of `a` evaluate to ``True``.
643
643
644
644
Refer to :obj:`dpnp.any` for full documentation.
645
645
@@ -655,7 +655,7 @@ def any(self, axis=None, *, out=None, keepdims=False, where=True):
655
655
656
656
def argmax (self , / , axis = None , out = None , * , keepdims = False ):
657
657
"""
658
- Returns array of indices of the maximum values along the given axis.
658
+ Return array of indices of the maximum values along the given axis.
659
659
660
660
Refer to :obj:`dpnp.argmax` for full documentation.
661
661
@@ -1076,7 +1076,7 @@ def dot(self, b, out=None):
1076
1076
@property
1077
1077
def dtype (self ):
1078
1078
"""
1079
- Returns NumPy's dtype corresponding to the type of the array elements.
1079
+ Return NumPy's dtype corresponding to the type of the array elements.
1080
1080
1081
1081
""" # noqa: D200
1082
1082
@@ -1309,7 +1309,7 @@ def mean(
1309
1309
self , / , axis = None , dtype = None , * , out = None , keepdims = False , where = True
1310
1310
):
1311
1311
"""
1312
- Returns the average of the array elements.
1312
+ Return the average of the array elements.
1313
1313
1314
1314
Refer to :obj:`dpnp.mean` for full documentation.
1315
1315
@@ -1478,7 +1478,7 @@ def prod(
1478
1478
where = True ,
1479
1479
):
1480
1480
"""
1481
- Returns the prod along a given axis.
1481
+ Return the prod along a given axis.
1482
1482
1483
1483
Refer to :obj:`dpnp.prod` for full documentation.
1484
1484
@@ -1496,7 +1496,7 @@ def prod(
1496
1496
1497
1497
def put (self , / , indices , vals , axis = None , mode = "wrap" ):
1498
1498
"""
1499
- Puts values of an array into another array along a given axis.
1499
+ Put values of an array into another array along a given axis.
1500
1500
1501
1501
Refer to :obj:`dpnp.put` for full documentation.
1502
1502
@@ -1567,7 +1567,7 @@ def repeat(self, repeats, axis=None):
1567
1567
1568
1568
def reshape (self , / , * shape , order = "C" , copy = None ):
1569
1569
"""
1570
- Returns an array containing the same data with a new shape.
1570
+ Return an array containing the same data with a new shape.
1571
1571
1572
1572
Refer to :obj:`dpnp.reshape` for full documentation.
1573
1573
@@ -1821,7 +1821,7 @@ def std(
1821
1821
correction = None ,
1822
1822
):
1823
1823
"""
1824
- Returns the standard deviation of the array elements, along given axis.
1824
+ Return the standard deviation of the array elements, along given axis.
1825
1825
1826
1826
Refer to :obj:`dpnp.std` for full documentation.
1827
1827
@@ -1842,7 +1842,7 @@ def std(
1842
1842
@property
1843
1843
def strides (self ):
1844
1844
"""
1845
- Returns memory displacement in array elements, upon unit
1845
+ Return memory displacement in array elements, upon unit
1846
1846
change of respective index.
1847
1847
1848
1848
For example, for strides ``(s1, s2, s3)`` and multi-index
@@ -1865,7 +1865,7 @@ def sum(
1865
1865
where = True ,
1866
1866
):
1867
1867
"""
1868
- Returns the sum along a given axis.
1868
+ Return the sum along a given axis.
1869
1869
1870
1870
Refer to :obj:`dpnp.sum` for full documentation.
1871
1871
@@ -1960,7 +1960,7 @@ def take(self, indices, axis=None, *, out=None, mode="wrap"):
1960
1960
1961
1961
def to_device (self , device , / , * , stream = None ):
1962
1962
"""
1963
- Transfers this array to specified target device.
1963
+ Transfer this array to specified target device.
1964
1964
1965
1965
Parameters
1966
1966
----------
@@ -2020,7 +2020,7 @@ def trace(self, offset=0, axis1=0, axis2=1, dtype=None, *, out=None):
2020
2020
2021
2021
def transpose (self , * axes ):
2022
2022
"""
2023
- Returns a view of the array with axes transposed.
2023
+ Return a view of the array with axes transposed.
2024
2024
2025
2025
For full documentation refer to :obj:`numpy.ndarray.transpose`.
2026
2026
@@ -2102,7 +2102,7 @@ def var(
2102
2102
correction = None ,
2103
2103
):
2104
2104
"""
2105
- Returns the variance of the array elements, along given axis.
2105
+ Return the variance of the array elements, along given axis.
2106
2106
2107
2107
Refer to :obj:`dpnp.var` for full documentation.
2108
2108
0 commit comments