@@ -104,7 +104,8 @@ def _boolean_reduction(x, axis, keepdims, func):
104
104
105
105
106
106
def all (x , / , * , axis = None , keepdims = False ):
107
- """all(x, axis=None, keepdims=False)
107
+ """
108
+ all(x, axis=None, keepdims=False)
108
109
109
110
Tests whether all input array elements evaluate to True along a given axis.
110
111
@@ -132,7 +133,8 @@ def all(x, /, *, axis=None, keepdims=False):
132
133
133
134
134
135
def any (x , / , * , axis = None , keepdims = False ):
135
- """any(x, axis=None, keepdims=False)
136
+ """
137
+ any(x, axis=None, keepdims=False)
136
138
137
139
Tests whether any input array elements evaluate to True along a given axis.
138
140
@@ -176,9 +178,11 @@ def _validate_diff_shape(sh1, sh2, axis):
176
178
177
179
178
180
def _concat_diff_input (arr , axis , prepend , append ):
179
- """Concatenates `arr`, `prepend` and, `append` along `axis`,
181
+ """
182
+ Concatenates `arr`, `prepend` and, `append` along `axis`,
180
183
where `arr` is an array and `prepend` and `append` are
181
- any mixture of arrays and scalars."""
184
+ any mixture of arrays and scalars.
185
+ """
182
186
if prepend is not None and append is not None :
183
187
q1 , x_usm_type = arr .sycl_queue , arr .usm_type
184
188
q2 , prepend_usm_type = _get_queue_usm_type (prepend )
@@ -441,7 +445,8 @@ def diff(x, /, *, axis=-1, n=1, prepend=None, append=None):
441
445
usm_ndarray:
442
446
an array containing the `n`-th differences. The array will have the
443
447
same shape as `x`, except along `axis`, which will have shape:
444
- prepend.shape[axis] + x.shape[axis] + append.shape[axis] - n
448
+ ``prepend.shape[axis] + x.shape[axis] + append.shape[axis] - n``
449
+
445
450
The data type of the returned array is determined by the Type
446
451
Promotion Rules.
447
452
"""
0 commit comments