@@ -428,6 +428,8 @@ def _process_ediff1d_args(arg, arg_name, ary_dtype, ary_sycl_queue, usm_type):
428
428
x2 : {dpnp.ndarray, usm_ndarray, scalar}
429
429
Second input array, also expected to have numeric data type.
430
430
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).
431
433
out : {None, dpnp.ndarray, usm_ndarray}, optional
432
434
Output array to populate.
433
435
Array must have the correct shape and the expected data type.
@@ -791,7 +793,7 @@ def convolve(a, v, mode="full"):
791
793
return call_origin (numpy .convolve , a = a , v = v , mode = mode )
792
794
793
795
794
- _COPYSING_DOCSTRING = """
796
+ _COPYSIGN_DOCSTRING = """
795
797
Composes a floating-point value with the magnitude of `x1_i` and the sign of
796
798
`x2_i` for each element of input arrays `x1` and `x2`.
797
799
@@ -806,6 +808,8 @@ def convolve(a, v, mode="full"):
806
808
Second input array, also expected to have a real floating-point data
807
809
type.
808
810
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).
809
813
out : {None, dpnp.ndarray, usm_ndarray}, optional
810
814
Output array to populate.
811
815
Array must have the correct shape and the expected data type.
@@ -852,7 +856,7 @@ def convolve(a, v, mode="full"):
852
856
"copysign" ,
853
857
ti ._copysign_result_type ,
854
858
ti ._copysign ,
855
- _COPYSING_DOCSTRING ,
859
+ _COPYSIGN_DOCSTRING ,
856
860
)
857
861
858
862
@@ -1462,6 +1466,8 @@ def diff(a, n=1, axis=-1, prepend=None, append=None):
1462
1466
x2 : {dpnp.ndarray, usm_ndarray, scalar}
1463
1467
Second input array, also expected to have numeric data type.
1464
1468
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).
1465
1471
out : {None, dpnp.ndarray, usm_ndarray}, optional
1466
1472
Output array to populate.
1467
1473
Array must have the correct shape and the expected data type.
@@ -1759,6 +1765,8 @@ def ediff1d(ary, to_end=None, to_begin=None):
1759
1765
x2 : {dpnp.ndarray, usm_ndarray, scalar}
1760
1766
Second input array, also expected to floating-point data types.
1761
1767
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).
1762
1770
out : {None, dpnp.ndarray, usm_ndarray}, optional
1763
1771
Output array to populate. Array must have the correct shape and
1764
1772
the expected data type.
@@ -1910,6 +1918,8 @@ def ediff1d(ary, to_end=None, to_begin=None):
1910
1918
x2 : {dpnp.ndarray, usm_ndarray, scalar}
1911
1919
Second input array, also expected to have numeric data type.
1912
1920
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).
1913
1923
out : {None, dpnp.ndarray, usm_ndarray}, optional
1914
1924
Output array to populate.
1915
1925
Array must have the correct shape and the expected data type.
@@ -1984,6 +1994,8 @@ def ediff1d(ary, to_end=None, to_begin=None):
1984
1994
x2 : {dpnp.ndarray, usm_ndarray, scalar}
1985
1995
Second input array, also expected to have numeric data type.
1986
1996
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).
1987
1999
out : {None, dpnp.ndarray, usm_ndarray}, optional
1988
2000
Output array to populate.
1989
2001
Array must have the correct shape and the expected data type.
@@ -2069,6 +2081,8 @@ def ediff1d(ary, to_end=None, to_begin=None):
2069
2081
x2 : {dpnp.ndarray, usm_ndarray, scalar}
2070
2082
Second input array, also expected to have numeric data type.
2071
2083
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).
2072
2086
out : {None, dpnp.ndarray, usm_ndarray}, optional
2073
2087
Output array to populate.
2074
2088
Array must have the correct shape and the expected data type.
@@ -2151,6 +2165,8 @@ def ediff1d(ary, to_end=None, to_begin=None):
2151
2165
x2 : {dpnp.ndarray, usm_ndarray, scalar}
2152
2166
Second input array, also expected to have a real-valued data type.
2153
2167
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).
2154
2170
out : {None, dpnp.ndarray, usm_ndarray}, optional
2155
2171
Output array to populate.
2156
2172
Array must have the correct shape and the expected data type.
@@ -2220,8 +2236,8 @@ def ediff1d(ary, to_end=None, to_begin=None):
2220
2236
x2 : {dpnp.ndarray, usm_ndarray, scalar}
2221
2237
Second input array, also expected to have an integer data type.
2222
2238
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) .
2225
2241
out : {None, dpnp.ndarray, usm_ndarray}, optional
2226
2242
Output array to populate.
2227
2243
Array must have the correct shape and the expected data type.
@@ -2484,6 +2500,8 @@ def gradient(f, *varargs, axis=None, edge_order=1):
2484
2500
x2 : {dpnp.ndarray, usm_ndarray, scalar}
2485
2501
The value of the function when `x1` is ``0``.
2486
2502
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).
2487
2505
out : {None, dpnp.ndarray, usm_ndarray}, optional
2488
2506
Output array to populate.
2489
2507
Array must have the correct shape and the expected data type.
@@ -2636,6 +2654,8 @@ def gradient(f, *varargs, axis=None, edge_order=1):
2636
2654
x2 : {dpnp.ndarray, usm_ndarray, scalar}
2637
2655
Second input array, also expected to have an integer data type.
2638
2656
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).
2639
2659
out : {None, dpnp.ndarray, usm_ndarray}, optional
2640
2660
Output array to populate.
2641
2661
Array must have the correct shape and the expected data type.
@@ -2693,6 +2713,8 @@ def gradient(f, *varargs, axis=None, edge_order=1):
2693
2713
x2 : {dpnp.ndarray, usm_ndarray, scalar}
2694
2714
Array of exponents of two, expected to have an integer data type.
2695
2715
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).
2696
2718
out : {None, dpnp.ndarray, usm_ndarray}, optional
2697
2719
Output array to populate. Array must have the correct shape and
2698
2720
the expected data type.
@@ -2758,6 +2780,8 @@ def gradient(f, *varargs, axis=None, edge_order=1):
2758
2780
x2 : {dpnp.ndarray, usm_ndarray, scalar}
2759
2781
Second input array, also expected to have numeric data type.
2760
2782
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).
2761
2785
out : {None, dpnp.ndarray, usm_ndarray}, optional
2762
2786
Output array to populate.
2763
2787
Array must have the correct shape and the expected data type.
@@ -2838,6 +2862,8 @@ def gradient(f, *varargs, axis=None, edge_order=1):
2838
2862
x2 : {dpnp.ndarray, usm_ndarray, scalar}
2839
2863
Second input array, also expected to have numeric data type.
2840
2864
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
2841
2867
out : {None, dpnp.ndarray, usm_ndarray}, optional
2842
2868
Output array to populate.
2843
2869
Array must have the correct shape and the expected data type.
@@ -2943,6 +2969,8 @@ def modf(x1, **kwargs):
2943
2969
x2 : {dpnp.ndarray, usm_ndarray, scalar}
2944
2970
Second input array, also expected to have numeric data type.
2945
2971
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).
2946
2974
out : {None, dpnp.ndarray, usm_ndarray}, optional
2947
2975
Output array to populate.
2948
2976
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):
3205
3233
x2 : {dpnp.ndarray, usm_ndarray, scalar}
3206
3234
The direction where to look for the next representable value of `x1`.
3207
3235
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).
3208
3238
out : {None, dpnp.ndarray, usm_ndarray}, optional
3209
3239
Output array to populate. Array must have the correct shape and
3210
3240
the expected data type.
@@ -3326,6 +3356,8 @@ def nan_to_num(x, copy=True, nan=0.0, posinf=None, neginf=None):
3326
3356
x2 : {dpnp.ndarray, usm_ndarray, scalar}
3327
3357
Second input array, also expected to have numeric data type.
3328
3358
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).
3329
3361
out : {None, dpnp.ndarray, usm_ndarray}, optional
3330
3362
Output array to populate. Array must have the correct shape and
3331
3363
the expected data type.
@@ -3688,6 +3720,8 @@ def real_if_close(a, tol=100):
3688
3720
x2 : {dpnp.ndarray, usm_ndarray, scalar}
3689
3721
Second input array, also expected to have a real-valued data type.
3690
3722
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).
3691
3725
out : {None, dpnp.ndarray, usm_ndarray}, optional
3692
3726
Output array to populate.
3693
3727
Array must have the correct shape and the expected data type.
@@ -4114,6 +4148,8 @@ def real_if_close(a, tol=100):
4114
4148
x2 : {dpnp.ndarray, usm_ndarray, scalar}
4115
4149
Second input array, also expected to have numeric data type.
4116
4150
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).
4117
4153
out : {None, dpnp.ndarray, usm_ndarray}, optional
4118
4154
Output array to populate.
4119
4155
Array must have the correct shape and the expected data type.
0 commit comments