@@ -1848,7 +1848,7 @@ def pad(array, pad_width, mode="constant", **kwargs):
1848
1848
Parameters
1849
1849
----------
1850
1850
array : {dpnp.ndarray, usm_ndarray}
1851
- The array to pad.
1851
+ The array of rank ``N`` to pad.
1852
1852
pad_width : {sequence, array_like, int}
1853
1853
Number of values padded to the edges of each axis.
1854
1854
``((before_1, after_1), ... (before_N, after_N))`` unique pad widths
@@ -1893,21 +1893,17 @@ def pad(array, pad_width, mode="constant", **kwargs):
1893
1893
Padding function, see Notes.
1894
1894
Default: ``"constant"``.
1895
1895
stat_length : {None, int, sequence of ints}, optional
1896
- Used in "maximum", "mean", and "minimum". Number of
1896
+ Used in `` "maximum"``, `` "mean"`` , and `` "minimum"`` . Number of
1897
1897
values at edge of each axis used to calculate the statistic value.
1898
-
1899
1898
``((before_1, after_1), ... (before_N, after_N))`` unique statistic
1900
1899
lengths for each axis.
1901
-
1902
1900
``(before, after)`` or ``((before, after),)`` yields same before
1903
1901
and after statistic lengths for each axis.
1904
-
1905
1902
``(stat_length,)`` or ``int`` is a shortcut for
1906
1903
``before = after = statistic`` length for all axes.
1907
-
1908
1904
Default: ``None``, to use the entire axis.
1909
1905
constant_values : {sequence, scalar}, optional
1910
- Used in "constant". The values to set the padded values for each
1906
+ Used in `` "constant"`` . The values to set the padded values for each
1911
1907
axis.
1912
1908
``((before_1, after_1), ... (before_N, after_N))`` unique pad constants
1913
1909
for each axis.
@@ -1917,7 +1913,7 @@ def pad(array, pad_width, mode="constant", **kwargs):
1917
1913
``before = after = constant`` for all axes.
1918
1914
Default: ``0``.
1919
1915
end_values : {sequence, scalar}, optional
1920
- Used in "linear_ramp". The values used for the ending value of the
1916
+ Used in `` "linear_ramp"`` . The values used for the ending value of the
1921
1917
linear_ramp and that will form the edge of the padded array.
1922
1918
``((before_1, after_1), ... (before_N, after_N))`` unique end values
1923
1919
for each axis.
@@ -1927,9 +1923,9 @@ def pad(array, pad_width, mode="constant", **kwargs):
1927
1923
``before = after = constant`` for all axes.
1928
1924
Default: ``0``.
1929
1925
reflect_type : {"even", "odd"}, optional
1930
- Used in "reflect", and "symmetric". The "even" style is the
1926
+ Used in `` "reflect"`` , and `` "symmetric"`` . The `` "even"`` style is the
1931
1927
default with an unaltered reflection around the edge value. For
1932
- the "odd" style, the extended part of the array is created by
1928
+ the `` "odd"`` style, the extended part of the array is created by
1933
1929
subtracting the reflected values from two times the edge value.
1934
1930
Default: ``"even"``.
1935
1931
0 commit comments