@@ -428,6 +428,8 @@ def _process_ediff1d_args(arg, arg_name, ary_dtype, ary_sycl_queue, usm_type):
428428x2 : {dpnp.ndarray, usm_ndarray, scalar}
429429 Second input array, also expected to have numeric data type.
430430 Both inputs `x1` and `x2` can not be scalars at the same time.
431+ If ``x1.shape != x2.shape``, they must be broadcastable to a common shape
432+ (which becomes the shape of the output).
431433out : {None, dpnp.ndarray, usm_ndarray}, optional
432434 Output array to populate.
433435 Array must have the correct shape and the expected data type.
@@ -791,7 +793,7 @@ def convolve(a, v, mode="full"):
791793 return call_origin (numpy .convolve , a = a , v = v , mode = mode )
792794
793795
794- _COPYSING_DOCSTRING = """
796+ _COPYSIGN_DOCSTRING = """
795797Composes a floating-point value with the magnitude of `x1_i` and the sign of
796798`x2_i` for each element of input arrays `x1` and `x2`.
797799
@@ -806,6 +808,8 @@ def convolve(a, v, mode="full"):
806808 Second input array, also expected to have a real floating-point data
807809 type.
808810 Both inputs `x1` and `x2` can not be scalars at the same time.
811+ If ``x1.shape != x2.shape``, they must be broadcastable to a common shape
812+ (which becomes the shape of the output).
809813out : {None, dpnp.ndarray, usm_ndarray}, optional
810814 Output array to populate.
811815 Array must have the correct shape and the expected data type.
@@ -852,7 +856,7 @@ def convolve(a, v, mode="full"):
852856 "copysign" ,
853857 ti ._copysign_result_type ,
854858 ti ._copysign ,
855- _COPYSING_DOCSTRING ,
859+ _COPYSIGN_DOCSTRING ,
856860)
857861
858862
@@ -1462,6 +1466,8 @@ def diff(a, n=1, axis=-1, prepend=None, append=None):
14621466x2 : {dpnp.ndarray, usm_ndarray, scalar}
14631467 Second input array, also expected to have numeric data type.
14641468 Both inputs `x1` and `x2` can not be scalars at the same time.
1469+ If ``x1.shape != x2.shape``, they must be broadcastable to a common shape
1470+ (which becomes the shape of the output).
14651471out : {None, dpnp.ndarray, usm_ndarray}, optional
14661472 Output array to populate.
14671473 Array must have the correct shape and the expected data type.
@@ -1759,6 +1765,8 @@ def ediff1d(ary, to_end=None, to_begin=None):
17591765x2 : {dpnp.ndarray, usm_ndarray, scalar}
17601766 Second input array, also expected to floating-point data types.
17611767 Both inputs `x1` and `x2` can not be scalars at the same time.
1768+ If ``x1.shape != x2.shape``, they must be broadcastable to a common shape
1769+ (which becomes the shape of the output).
17621770out : {None, dpnp.ndarray, usm_ndarray}, optional
17631771 Output array to populate. Array must have the correct shape and
17641772 the expected data type.
@@ -1910,6 +1918,8 @@ def ediff1d(ary, to_end=None, to_begin=None):
19101918x2 : {dpnp.ndarray, usm_ndarray, scalar}
19111919 Second input array, also expected to have numeric data type.
19121920 Both inputs `x1` and `x2` can not be scalars at the same time.
1921+ If ``x1.shape != x2.shape``, they must be broadcastable to a common shape
1922+ (which becomes the shape of the output).
19131923out : {None, dpnp.ndarray, usm_ndarray}, optional
19141924 Output array to populate.
19151925 Array must have the correct shape and the expected data type.
@@ -1984,6 +1994,8 @@ def ediff1d(ary, to_end=None, to_begin=None):
19841994x2 : {dpnp.ndarray, usm_ndarray, scalar}
19851995 Second input array, also expected to have numeric data type.
19861996 Both inputs `x1` and `x2` can not be scalars at the same time.
1997+ If ``x1.shape != x2.shape``, they must be broadcastable to a common shape
1998+ (which becomes the shape of the output).
19871999out : {None, dpnp.ndarray, usm_ndarray}, optional
19882000 Output array to populate.
19892001 Array must have the correct shape and the expected data type.
@@ -2069,6 +2081,8 @@ def ediff1d(ary, to_end=None, to_begin=None):
20692081x2 : {dpnp.ndarray, usm_ndarray, scalar}
20702082 Second input array, also expected to have numeric data type.
20712083 Both inputs `x1` and `x2` can not be scalars at the same time.
2084+ If ``x1.shape != x2.shape``, they must be broadcastable to a common shape
2085+ (which becomes the shape of the output).
20722086out : {None, dpnp.ndarray, usm_ndarray}, optional
20732087 Output array to populate.
20742088 Array must have the correct shape and the expected data type.
@@ -2151,6 +2165,8 @@ def ediff1d(ary, to_end=None, to_begin=None):
21512165x2 : {dpnp.ndarray, usm_ndarray, scalar}
21522166 Second input array, also expected to have a real-valued data type.
21532167 Both inputs `x1` and `x2` can not be scalars at the same time.
2168+ If ``x1.shape != x2.shape``, they must be broadcastable to a common shape
2169+ (which becomes the shape of the output).
21542170out : {None, dpnp.ndarray, usm_ndarray}, optional
21552171 Output array to populate.
21562172 Array must have the correct shape and the expected data type.
@@ -2220,8 +2236,8 @@ def ediff1d(ary, to_end=None, to_begin=None):
22202236x2 : {dpnp.ndarray, usm_ndarray, scalar}
22212237 Second input array, also expected to have an integer data type.
22222238 Both inputs `x1` and `x2` can not be scalars at the same time.
2223- x : {dpnp.ndarray, usm_ndarray}
2224- An array of floats to be rounded .
2239+ If ``x1.shape != x2.shape``, they must be broadcastable to a common shape
2240+ (which becomes the shape of the output) .
22252241out : {None, dpnp.ndarray, usm_ndarray}, optional
22262242 Output array to populate.
22272243 Array must have the correct shape and the expected data type.
@@ -2484,6 +2500,8 @@ def gradient(f, *varargs, axis=None, edge_order=1):
24842500x2 : {dpnp.ndarray, usm_ndarray, scalar}
24852501 The value of the function when `x1` is ``0``.
24862502 Both inputs `x1` and `x2` can not be scalars at the same time.
2503+ If ``x1.shape != x2.shape``, they must be broadcastable to a common shape
2504+ (which becomes the shape of the output).
24872505out : {None, dpnp.ndarray, usm_ndarray}, optional
24882506 Output array to populate.
24892507 Array must have the correct shape and the expected data type.
@@ -2636,6 +2654,8 @@ def gradient(f, *varargs, axis=None, edge_order=1):
26362654x2 : {dpnp.ndarray, usm_ndarray, scalar}
26372655 Second input array, also expected to have an integer data type.
26382656 Both inputs `x1` and `x2` can not be scalars at the same time.
2657+ If ``x1.shape != x2.shape``, they must be broadcastable to a common shape
2658+ (which becomes the shape of the output).
26392659out : {None, dpnp.ndarray, usm_ndarray}, optional
26402660 Output array to populate.
26412661 Array must have the correct shape and the expected data type.
@@ -2693,6 +2713,8 @@ def gradient(f, *varargs, axis=None, edge_order=1):
26932713x2 : {dpnp.ndarray, usm_ndarray, scalar}
26942714 Array of exponents of two, expected to have an integer data type.
26952715 Both inputs `x1` and `x2` can not be scalars at the same time.
2716+ If ``x1.shape != x2.shape``, they must be broadcastable to a common shape
2717+ (which becomes the shape of the output).
26962718out : {None, dpnp.ndarray, usm_ndarray}, optional
26972719 Output array to populate. Array must have the correct shape and
26982720 the expected data type.
@@ -2758,6 +2780,8 @@ def gradient(f, *varargs, axis=None, edge_order=1):
27582780x2 : {dpnp.ndarray, usm_ndarray, scalar}
27592781 Second input array, also expected to have numeric data type.
27602782 Both inputs `x1` and `x2` can not be scalars at the same time.
2783+ If ``x1.shape != x2.shape``, they must be broadcastable to a common shape
2784+ (which becomes the shape of the output).
27612785out : {None, dpnp.ndarray, usm_ndarray}, optional
27622786 Output array to populate.
27632787 Array must have the correct shape and the expected data type.
@@ -2838,6 +2862,8 @@ def gradient(f, *varargs, axis=None, edge_order=1):
28382862x2 : {dpnp.ndarray, usm_ndarray, scalar}
28392863 Second input array, also expected to have numeric data type.
28402864 Both inputs `x1` and `x2` can not be scalars at the same time.
2865+ If ``x1.shape != x2.shape``, they must be broadcastable to a common shape
2866+ (which becomes the shape of the output).s
28412867out : {None, dpnp.ndarray, usm_ndarray}, optional
28422868 Output array to populate.
28432869 Array must have the correct shape and the expected data type.
@@ -2943,6 +2969,8 @@ def modf(x1, **kwargs):
29432969x2 : {dpnp.ndarray, usm_ndarray, scalar}
29442970 Second input array, also expected to have numeric data type.
29452971 Both inputs `x1` and `x2` can not be scalars at the same time.
2972+ If ``x1.shape != x2.shape``, they must be broadcastable to a common shape
2973+ (which becomes the shape of the output).
29462974out : {None, dpnp.ndarray, usm_ndarray}, optional
29472975 Output array to populate.
29482976 Array must have the correct shape and the expected data type.
@@ -3205,6 +3233,8 @@ def nan_to_num(x, copy=True, nan=0.0, posinf=None, neginf=None):
32053233x2 : {dpnp.ndarray, usm_ndarray, scalar}
32063234 The direction where to look for the next representable value of `x1`.
32073235 Both inputs `x1` and `x2` can not be scalars at the same time.
3236+ If ``x1.shape != x2.shape``, they must be broadcastable to a common shape
3237+ (which becomes the shape of the output).
32083238out : {None, dpnp.ndarray, usm_ndarray}, optional
32093239 Output array to populate. Array must have the correct shape and
32103240 the expected data type.
@@ -3326,6 +3356,8 @@ def nan_to_num(x, copy=True, nan=0.0, posinf=None, neginf=None):
33263356x2 : {dpnp.ndarray, usm_ndarray, scalar}
33273357 Second input array, also expected to have numeric data type.
33283358 Both inputs `x1` and `x2` can not be scalars at the same time.
3359+ If ``x1.shape != x2.shape``, they must be broadcastable to a common shape
3360+ (which becomes the shape of the output).
33293361out : {None, dpnp.ndarray, usm_ndarray}, optional
33303362 Output array to populate. Array must have the correct shape and
33313363 the expected data type.
@@ -3688,6 +3720,8 @@ def real_if_close(a, tol=100):
36883720x2 : {dpnp.ndarray, usm_ndarray, scalar}
36893721 Second input array, also expected to have a real-valued data type.
36903722 Both inputs `x1` and `x2` can not be scalars at the same time.
3723+ If ``x1.shape != x2.shape``, they must be broadcastable to a common shape
3724+ (which becomes the shape of the output).
36913725out : {None, dpnp.ndarray, usm_ndarray}, optional
36923726 Output array to populate.
36933727 Array must have the correct shape and the expected data type.
@@ -4114,6 +4148,8 @@ def real_if_close(a, tol=100):
41144148x2 : {dpnp.ndarray, usm_ndarray, scalar}
41154149 Second input array, also expected to have numeric data type.
41164150 Both inputs `x1` and `x2` can not be scalars at the same time.
4151+ If ``x1.shape != x2.shape``, they must be broadcastable to a common shape
4152+ (which becomes the shape of the output).
41174153out : {None, dpnp.ndarray, usm_ndarray}, optional
41184154 Output array to populate.
41194155 Array must have the correct shape and the expected data type.
0 commit comments