@@ -276,7 +276,7 @@ def _pad_simple(array, pad_width, fill_value=None):
276
276
277
277
Parameters
278
278
----------
279
- array : ndarray
279
+ array : dpnp. ndarray
280
280
Array to grow.
281
281
pad_width : sequence of tuple[int, int]
282
282
Pad width on both sides for each dimension in `arr`.
@@ -286,8 +286,8 @@ def _pad_simple(array, pad_width, fill_value=None):
286
286
287
287
Returns
288
288
-------
289
- padded : ndarray
290
- The padded array with the same dtype as`array`. Its order will default
289
+ padded : dpnp. ndarray
290
+ The padded array with the same dtype as `array`. Its order will default
291
291
to C-style if `array` is not F-contiguous.
292
292
original_area_slice : tuple
293
293
A tuple of slices pointing to the area of the original array.
@@ -299,7 +299,7 @@ def _pad_simple(array, pad_width, fill_value=None):
299
299
left + size + right
300
300
for size , (left , right ) in zip (array .shape , pad_width )
301
301
)
302
- order = "F" if array .flags .fnc else "C" # Fortran and not also C-order
302
+ order = "F" if array .flags .fnc else "C"
303
303
padded = dpnp .empty (
304
304
new_shape ,
305
305
dtype = array .dtype ,
@@ -598,7 +598,7 @@ def _view_roi(array, original_area_slice, axis):
598
598
599
599
Returns
600
600
-------
601
- roi : ndarray
601
+ roi : dpnp. ndarray
602
602
The region of interest of the original `array`.
603
603
604
604
"""
@@ -679,7 +679,7 @@ def dpnp_pad(array, pad_width, mode="constant", **kwargs):
679
679
if (
680
680
dpnp .isscalar (values )
681
681
and values == 0
682
- and (array .ndim == 1 or array .size < 4e6 )
682
+ and (array .ndim == 1 or array .size < 3e7 )
683
683
):
684
684
# faster path for 1d arrays or small n-dimensional arrays
685
685
return _pad_simple (array , pad_width , 0 )[0 ]
0 commit comments