@@ -122,7 +122,8 @@ def _get_accumulation_res_dt(a, dtype, _out):
122
122
Input array, expected to have numeric data type.
123
123
out : {None, dpnp.ndarray, usm_ndarray}, optional
124
124
Output array to populate.
125
- Array must have the correct shape and the expected data type.
125
+ Array must have a shape that the input broadcast to and
126
+ the expected data type.
126
127
Default: ``None``.
127
128
order : {"C", "F", "A", "K"}, optional
128
129
Memory layout of the newly output array, if parameter `out` is ``None``.
@@ -198,7 +199,8 @@ def _get_accumulation_res_dt(a, dtype, _out):
198
199
Input array, expected to have numeric data type.
199
200
out : {None, dpnp.ndarray, usm_ndarray}, optional
200
201
Output array to populate.
201
- Array must have the correct shape and the expected data type.
202
+ Array must have a shape that the input broadcast to and
203
+ the expected data type.
202
204
Default: ``None``.
203
205
order : {"C", "F", "A", "K"}, optional
204
206
Memory layout of the newly output array, if parameter `out` is ``None``.
@@ -275,7 +277,8 @@ def _get_accumulation_res_dt(a, dtype, _out):
275
277
Input array, expected to have numeric data type.
276
278
out : {None, dpnp.ndarray, usm_ndarray}, optional
277
279
Output array to populate.
278
- Array must have the correct shape and the expected data type.
280
+ Array must have a shape that the input broadcast to and
281
+ the expected data type.
279
282
Default: ``None``.
280
283
order : {"C", "F", "A", "K"}, optional
281
284
Memory layout of the newly output array, if parameter `out` is ``None``.
@@ -354,7 +357,8 @@ def _get_accumulation_res_dt(a, dtype, _out):
354
357
Input array, expected to have numeric data type.
355
358
out : {None, dpnp.ndarray, usm_ndarray}, optional
356
359
Output array to populate.
357
- Array must have the correct shape and the expected data type.
360
+ Array must have a shape that the input broadcast to and
361
+ the expected data type.
358
362
Default: ``None``.
359
363
order : {"C", "F", "A", "K"}, optional
360
364
Memory layout of the newly output array, if parameter `out` is ``None``.
@@ -431,7 +435,8 @@ def _get_accumulation_res_dt(a, dtype, _out):
431
435
Input array, expected to have numeric data type.
432
436
out : {None, dpnp.ndarray, usm_ndarray}, optional
433
437
Output array to populate.
434
- Array must have the correct shape and the expected data type.
438
+ Array must have a shape that the input broadcast to and
439
+ the expected data type.
435
440
Default: ``None``.
436
441
order : {"C", "F", "A", "K"}, optional
437
442
Memory layout of the newly output array, if parameter `out` is ``None``.
@@ -516,9 +521,12 @@ def _get_accumulation_res_dt(a, dtype, _out):
516
521
Second input array, also expected to have a real-valued
517
522
floating-point data type.
518
523
Both inputs `x1` and `x2` can not be scalars at the same time.
524
+ If ``x1.shape != x2.shape``, they must be broadcastable to a common shape
525
+ (which becomes the shape of the output).
519
526
out : {None, dpnp.ndarray, usm_ndarray}, optional
520
527
Output array to populate.
521
- Array must have the correct shape and the expected data type.
528
+ Array must have a shape that the inputs broadcast to and
529
+ the expected data type.
522
530
Default: ``None``.
523
531
order : {"C", "F", "A", "K"}, optional
524
532
Memory layout of the newly output array, if parameter `out` is ``None``.
@@ -591,7 +599,8 @@ def _get_accumulation_res_dt(a, dtype, _out):
591
599
Input array, expected to have numeric data type.
592
600
out : {None, dpnp.ndarray, usm_ndarray}, optional
593
601
Output array to populate.
594
- Array must have the correct shape and the expected data type.
602
+ Array must have a shape that the input broadcast to and
603
+ the expected data type.
595
604
Default: ``None``.
596
605
order : {"C", "F", "A", "K"}, optional
597
606
Memory layout of the newly output array, if parameter `out` is ``None``.
@@ -664,7 +673,8 @@ def _get_accumulation_res_dt(a, dtype, _out):
664
673
Input array, expected to have a real-valued data type.
665
674
out : {None, dpnp.ndarray, usm_ndarray}, optional
666
675
Output array to populate.
667
- Array must have the correct shape and the expected data type.
676
+ Array must have a shape that the input broadcast to and
677
+ the expected data type.
668
678
Default: ``None``.
669
679
order : {"C", "F", "A", "K"}, optional
670
680
Memory layout of the newly output array, if parameter `out` is ``None``.
@@ -716,7 +726,8 @@ def _get_accumulation_res_dt(a, dtype, _out):
716
726
Input array, expected to have numeric data type.
717
727
out : {None, dpnp.ndarray, usm_ndarray}, optional
718
728
Output array to populate.
719
- Array must have the correct shape and the expected data type.
729
+ Array must have a shape that the input broadcast to and
730
+ the expected data type.
720
731
Default: ``None``.
721
732
order : {"C", "F", "A", "K"}, optional
722
733
Memory layout of the newly output array, if parameter `out` is ``None``.
@@ -770,7 +781,8 @@ def _get_accumulation_res_dt(a, dtype, _out):
770
781
Input array, expected to have numeric data type.
771
782
out : {None, dpnp.ndarray, usm_ndarray}, optional
772
783
Output array to populate.
773
- Array must have the correct shape and the expected data type.
784
+ Array must have a shape that the input broadcast to and
785
+ the expected data type.
774
786
Default: ``None``.
775
787
order : {"C", "F", "A", "K"}, optional
776
788
Memory layout of the newly output array, if parameter `out` is ``None``.
@@ -913,7 +925,8 @@ def cumlogsumexp(
913
925
Angles in degrees.
914
926
out : {None, dpnp.ndarray, usm_ndarray}, optional
915
927
Output array to populate.
916
- Array must have the correct shape and the expected data type.
928
+ Array must have a shape that the input broadcast to and
929
+ the expected data type.
917
930
Default: ``None``.
918
931
order : {"C", "F", "A", "K"}, optional
919
932
Memory layout of the newly output array, if parameter `out` is ``None``.
@@ -968,7 +981,8 @@ def cumlogsumexp(
968
981
Input array in radians.
969
982
out : {None, dpnp.ndarray, usm_ndarray}, optional
970
983
Output array to populate.
971
- Array must have the correct shape and the expected data type.
984
+ Array must have a shape that the input broadcast to and
985
+ the expected data type.
972
986
Default: ``None``.
973
987
order : {"C", "F", "A", "K"}, optional
974
988
Memory layout of the newly output array, if parameter `out` is ``None``.
@@ -1026,7 +1040,8 @@ def cumlogsumexp(
1026
1040
Input array, expected to have numeric data type.
1027
1041
out : {None, dpnp.ndarray, usm_ndarray}, optional
1028
1042
Output array to populate.
1029
- Array must have the correct shape and the expected data type.
1043
+ Array must have a shape that the input broadcast to and
1044
+ the expected data type.
1030
1045
Default: ``None``.
1031
1046
order : {"C", "F", "A", "K"}, optional
1032
1047
Memory layout of the newly output array, if parameter `out` is ``None``.
@@ -1079,7 +1094,8 @@ def cumlogsumexp(
1079
1094
Input array, expected to have a floating-point data type.
1080
1095
out : {None, dpnp.ndarray, usm_ndarray}, optional
1081
1096
Output array to populate.
1082
- Array must have the correct shape and the expected data type.
1097
+ Array must have a shape that the input broadcast to and
1098
+ the expected data type.
1083
1099
Default: ``None``.
1084
1100
order : {"C", "F", "A", "K"}, optional
1085
1101
Memory layout of the newly output array, if parameter `out` is ``None``.
@@ -1135,7 +1151,8 @@ def cumlogsumexp(
1135
1151
Input array, expected to have numeric data type.
1136
1152
out : {None, dpnp.ndarray, usm_ndarray}, optional
1137
1153
Output array to populate.
1138
- Array must have the correct shape and the expected data type.
1154
+ Array must have a shape that the input broadcast to and
1155
+ the expected data type.
1139
1156
Default: ``None``.
1140
1157
order : {"C", "F", "A", "K"}, optional
1141
1158
Memory layout of the newly output array, if parameter `out` is ``None``.
@@ -1192,15 +1209,15 @@ def cumlogsumexp(
1192
1209
1193
1210
Parameters
1194
1211
----------
1195
- x1 : {dpnp.ndarray, usm_ndarray, scalar}
1196
- First input array, expected to have a real-valued data type.
1197
- Both inputs `x1` and `x2` can not be scalars at the same time.
1198
- x2 : {dpnp.ndarray, usm_ndarray, scalar}
1199
- Second input array, also expected to have a real-valued data type.
1212
+ x1, x2 : {dpnp.ndarray, usm_ndarray, scalar}
1213
+ Input arrays, expected to have a real-valued data type.
1200
1214
Both inputs `x1` and `x2` can not be scalars at the same time.
1215
+ If ``x1.shape != x2.shape``, they must be broadcastable to a common shape
1216
+ (which becomes the shape of the output).
1201
1217
out : {None, dpnp.ndarray, usm_ndarray}, optional
1202
1218
Output array to populate.
1203
- Array must have the correct shape and the expected data type.
1219
+ Array must have a shape that the inputs broadcast to and
1220
+ the expected data type.
1204
1221
Default: ``None``.
1205
1222
order : {"C", "F", "A", "K"}, optional
1206
1223
Memory layout of the newly output array, if parameter `out` is ``None``.
@@ -1261,7 +1278,8 @@ def cumlogsumexp(
1261
1278
Input array, expected to have numeric data type.
1262
1279
out : {None, dpnp.ndarray, usm_ndarray}, optional
1263
1280
Output array to populate.
1264
- Array must have the correct shape and the expected data type.
1281
+ Array must have a shape that the input broadcast to and
1282
+ the expected data type.
1265
1283
Default: ``None``.
1266
1284
order : {"C", "F", "A", "K"}, optional
1267
1285
Memory layout of the newly output array, if parameter `out` is ``None``.
@@ -1316,7 +1334,8 @@ def cumlogsumexp(
1316
1334
Input array, expected to have numeric data type.
1317
1335
out : {None, dpnp.ndarray, usm_ndarray}, optional
1318
1336
Output array to populate.
1319
- Array must have the correct shape and the expected data type.
1337
+ Array must have a shape that the input broadcast to and
1338
+ the expected data type.
1320
1339
Default: ``None``.
1321
1340
order : {"C", "F", "A", "K"}, optional
1322
1341
Memory layout of the newly output array, if parameter `out` is ``None``.
@@ -1376,7 +1395,8 @@ def cumlogsumexp(
1376
1395
Input array, expected to have numeric data type.
1377
1396
out : {None, dpnp.ndarray, usm_ndarray}, optional
1378
1397
Output array to populate.
1379
- Array must have the correct shape and the expected data type.
1398
+ Array must have a shape that the input broadcast to and
1399
+ the expected data type.
1380
1400
Default: ``None``.
1381
1401
order : {"C", "F", "A", "K"}, optional
1382
1402
Memory layout of the newly output array, if parameter `out` is ``None``.
@@ -1436,7 +1456,8 @@ def cumlogsumexp(
1436
1456
Input array, expected to have numeric data type.
1437
1457
out : {None, dpnp.ndarray, usm_ndarray}, optional
1438
1458
Output array to populate.
1439
- Array must have the correct shape and the expected data type.
1459
+ Array must have a shape that the input broadcast to and
1460
+ the expected data type.
1440
1461
Default: ``None``.
1441
1462
order : {"C", "F", "A", "K"}, optional
1442
1463
Memory layout of the newly output array, if parameter `out` is ``None``.
@@ -1495,17 +1516,16 @@ def cumlogsumexp(
1495
1516
1496
1517
Parameters
1497
1518
----------
1498
- x1 : {dpnp.ndarray, usm_ndarray, scalar}
1499
- First input array , expected to have a real-valued floating-point
1519
+ x1, x2 : {dpnp.ndarray, usm_ndarray, scalar}
1520
+ Input arrays , expected to have a real-valued floating-point
1500
1521
data type.
1501
1522
Both inputs `x1` and `x2` can not be scalars at the same time.
1502
- x2 : {dpnp.ndarray, usm_ndarray, scalar}
1503
- Second input array, also expected to have a real-valued
1504
- floating-point data type.
1505
- Both inputs `x1` and `x2` can not be scalars at the same time.
1523
+ If ``x1.shape != x2.shape``, they must be broadcastable to a common shape
1524
+ (which becomes the shape of the output).
1506
1525
out : {None, dpnp.ndarray, usm_ndarray}, optional
1507
1526
Output array to populate.
1508
- Array must have the correct shape and the expected data type.
1527
+ Array must have a shape that the inputs broadcast to and
1528
+ the expected data type.
1509
1529
Default: ``None``.
1510
1530
order : {"C", "F", "A", "K"}, optional
1511
1531
Memory layout of the newly output array, if parameter `out` is ``None``.
@@ -1567,17 +1587,16 @@ def cumlogsumexp(
1567
1587
1568
1588
Parameters
1569
1589
----------
1570
- x1 : {dpnp.ndarray, usm_ndarray, scalar}
1571
- First input array , expected to have a real-valued floating-point
1590
+ x1, x2 : {dpnp.ndarray, usm_ndarray, scalar}
1591
+ Input arrays , expected to have a real-valued floating-point
1572
1592
data type.
1573
1593
Both inputs `x1` and `x2` can not be scalars at the same time.
1574
- x2 : {dpnp.ndarray, usm_ndarray, scalar}
1575
- Second input array, also expected to have a real-valued
1576
- floating-point data type.
1577
- Both inputs `x1` and `x2` can not be scalars at the same time.
1594
+ If ``x1.shape != x2.shape``, they must be broadcastable to a common shape
1595
+ (which becomes the shape of the output).
1578
1596
out : {None, dpnp.ndarray, usm_ndarray}, optional
1579
1597
Output array to populate.
1580
- Array must have the correct shape and the expected data type.
1598
+ Array must have a shape that the inputs broadcast to and
1599
+ the expected data type.
1581
1600
Default: ``None``.
1582
1601
order : {"C", "F", "A", "K"}, optional
1583
1602
Memory layout of the newly output array, if parameter `out` is ``None``.
@@ -1719,7 +1738,8 @@ def logsumexp(x, /, *, axis=None, dtype=None, keepdims=False, out=None):
1719
1738
Angle in radians.
1720
1739
out : {None, dpnp.ndarray, usm_ndarray}, optional
1721
1740
Output array to populate.
1722
- Array must have the correct shape and the expected data type.
1741
+ Array must have a shape that the input broadcast to and
1742
+ the expected data type.
1723
1743
Default: ``None``.
1724
1744
order : {"C", "F", "A", "K"}, optional
1725
1745
Memory layout of the newly output array, if parameter `out` is ``None``.
@@ -1774,7 +1794,8 @@ def logsumexp(x, /, *, axis=None, dtype=None, keepdims=False, out=None):
1774
1794
Input array in degrees.
1775
1795
out : {None, dpnp.ndarray, usm_ndarray}, optional
1776
1796
Output array to populate.
1777
- Array must have the correct shape and the expected data type.
1797
+ Array must have a shape that the input broadcast to and
1798
+ the expected data type.
1778
1799
Default: ``None``.
1779
1800
order : {"C", "F", "A", "K"}, optional
1780
1801
Memory layout of the newly output array, if parameter `out` is ``None``.
@@ -1833,7 +1854,8 @@ def logsumexp(x, /, *, axis=None, dtype=None, keepdims=False, out=None):
1833
1854
Input array, expected to have a real-valued floating-point data type.
1834
1855
out : {None, dpnp.ndarray, usm_ndarray}, optional
1835
1856
Output array to populate.
1836
- Array must have the correct shape and the expected data type.
1857
+ Array must have a shape that the input broadcast to and
1858
+ the expected data type.
1837
1859
Default: ``None``.
1838
1860
order : {"C", "F", "A", "K"}, optional
1839
1861
Memory layout of the newly output array, if parameter `out` is ``None``.
@@ -1964,7 +1986,8 @@ def reduce_hypot(x, /, *, axis=None, dtype=None, keepdims=False, out=None):
1964
1986
Input array, expected to have a real floating-point data type.
1965
1987
out : ({None, dpnp.ndarray, usm_ndarray}, optional):
1966
1988
Output array to populate.
1967
- Array must have the correct shape and the expected data type.
1989
+ Array must have a shape that the input broadcast to and
1990
+ the expected data type.
1968
1991
Default: ``None``.
1969
1992
order : ({'C', 'F', 'A', 'K'}, optional):
1970
1993
Memory layout of the newly output array, if parameter `out` is `None`.
@@ -2015,7 +2038,8 @@ def reduce_hypot(x, /, *, axis=None, dtype=None, keepdims=False, out=None):
2015
2038
Input array, expected to have numeric data type.
2016
2039
out : {None, dpnp.ndarray, usm_ndarray}, optional
2017
2040
Output array to populate.
2018
- Array must have the correct shape and the expected data type.
2041
+ Array must have a shape that the input broadcast to and
2042
+ the expected data type.
2019
2043
Default: ``None``.
2020
2044
order : {"C", "F", "A", "K"}, optional
2021
2045
Memory layout of the newly output array, if parameter `out` is ``None``.
@@ -2069,7 +2093,8 @@ def reduce_hypot(x, /, *, axis=None, dtype=None, keepdims=False, out=None):
2069
2093
Input array, expected to have numeric data type.
2070
2094
out : {None, dpnp.ndarray, usm_ndarray}, optional
2071
2095
Output array to populate.
2072
- Array must have the correct shape and the expected data type.
2096
+ Array must have a shape that the input broadcast to and
2097
+ the expected data type.
2073
2098
Default: ``None``.
2074
2099
order : {"C", "F", "A", "K"}, optional
2075
2100
Memory layout of the newly output array, if parameter `out` is ``None``.
@@ -2122,7 +2147,8 @@ def reduce_hypot(x, /, *, axis=None, dtype=None, keepdims=False, out=None):
2122
2147
Input array.
2123
2148
out : {None, dpnp.ndarray, usm_ndarray}, optional
2124
2149
Output array to populate.
2125
- Array must have the correct shape and the expected data type.
2150
+ Array must have a shape that the input broadcast to and
2151
+ the expected data type.
2126
2152
Default: ``None``.
2127
2153
order : {"C", "F", "A", "K"}, optional
2128
2154
Memory layout of the newly output array, if parameter `out` is ``None``.
@@ -2178,7 +2204,8 @@ def reduce_hypot(x, /, *, axis=None, dtype=None, keepdims=False, out=None):
2178
2204
Input array.
2179
2205
out : {None, dpnp.ndarray, usm_ndarray}, optional
2180
2206
Output array to populate.
2181
- Array must have the correct shape and the expected data type.
2207
+ Array must have a shape that the input broadcast to and
2208
+ the expected data type.
2182
2209
Default: ``None``.
2183
2210
order : {"C", "F", "A", "K"}, optional
2184
2211
Memory layout of the newly output array, if parameter `out` is ``None``.
@@ -2233,7 +2260,8 @@ def reduce_hypot(x, /, *, axis=None, dtype=None, keepdims=False, out=None):
2233
2260
Input array, expected to have numeric data type.
2234
2261
out : {None, dpnp.ndarray, usm_ndarray}, optional
2235
2262
Output array to populate.
2236
- Array must have the correct shape and the expected data type.
2263
+ Array must have a shape that the input broadcast to and
2264
+ the expected data type.
2237
2265
Default: ``None``.
2238
2266
order : {"C", "F", "A", "K"}, optional
2239
2267
Memory layout of the newly output array, if parameter `out` is ``None``.
@@ -2287,7 +2315,8 @@ def reduce_hypot(x, /, *, axis=None, dtype=None, keepdims=False, out=None):
2287
2315
Input array, expected to have numeric data type.
2288
2316
out : {None, dpnp.ndarray, usm_ndarray}, optional
2289
2317
Output array to populate.
2290
- Array must have the correct shape and the expected data type.
2318
+ Array must have a shape that the input broadcast to and
2319
+ the expected data type.
2291
2320
Default: ``None``.
2292
2321
order : {"C", "F", "A", "K"}, optional
2293
2322
Memory layout of the newly output array, if parameter `out` is ``None``.
0 commit comments