Skip to content

Commit c138cea

Browse files
committed
Rephrase a case when an input array may have any dtype
1 parent ec5fff4 commit c138cea

File tree

1 file changed

+32
-35
lines changed

1 file changed

+32
-35
lines changed

dpctl/tensor/_elementwise_funcs.py

+32-35
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
3434
Args:
3535
x (usm_ndarray):
36-
Input array, expected to have a boolean or numeric data type.
36+
Input array. May have any data type.
3737
out (Union[usm_ndarray, None], optional):
3838
Output array to populate.
3939
Array must have the correct shape and the expected data type.
@@ -123,9 +123,9 @@
123123
124124
Args:
125125
x1 (usm_ndarray):
126-
First input array, expected to have a boolean or numeric data type.
126+
First input array. May have any data type.
127127
x2 (usm_ndarray):
128-
Second input array, expected to have a boolean or numeric data type.
128+
Second input array. May have any data type.
129129
out (Union[usm_ndarray, None], optional):
130130
Output array to populate.
131131
Array must have the correct shape and the expected data type.
@@ -555,7 +555,7 @@
555555
556556
Args:
557557
x (usm_ndarray):
558-
Input array, expected to have a boolean or numeric data type.
558+
Input array. May have any data type.
559559
out (Union[usm_ndarray, None], optional):
560560
Output array to populate.
561561
Array must have the correct shape and the expected data type.
@@ -674,10 +674,9 @@
674674
675675
Args:
676676
x1 (usm_ndarray):
677-
First input array, expected to have a boolean or numeric data type.
677+
First input array. May have any data type.
678678
x2 (usm_ndarray):
679-
Second input array, also expected to have a boolean or numeric data
680-
type.
679+
Second input array. May have any data type.
681680
out (Union[usm_ndarray, None], optional):
682681
Output array to populate.
683682
Array must have the correct shape and the expected data type.
@@ -833,10 +832,9 @@
833832
834833
Args:
835834
x1 (usm_ndarray):
836-
First input array, expected to have a boolean or numeric data type.
835+
First input array. May have any data type.
837836
x2 (usm_ndarray):
838-
Second input array, also expected to have a boolean or numeric data
839-
type.
837+
Second input array. May have any data type.
840838
out (Union[usm_ndarray, None], optional):
841839
Output array to populate.
842840
Array must have the correct shape and the expected data type.
@@ -869,10 +867,9 @@
869867
870868
Args:
871869
x1 (usm_ndarray):
872-
First input array, expected to have a boolean or numeric data type.
870+
First input array. May have any data type.
873871
x2 (usm_ndarray):
874-
Second input array, also expected to have a boolean or numeric data
875-
type.
872+
Second input array. May have any data type.
876873
out (Union[usm_ndarray, None], optional):
877874
Output array to populate.
878875
Array must have the correct shape and the expected data type.
@@ -905,7 +902,7 @@
905902
906903
Args:
907904
x (usm_ndarray):
908-
Input array, expected to have a boolean or numeric data type.
905+
Input array. May have any data type.
909906
out (Union[usm_ndarray, None], optional):
910907
Output array to populate.
911908
Array must have the correct shape and the expected data type.
@@ -936,7 +933,7 @@
936933
937934
Args:
938935
x (usm_ndarray):
939-
Input array, expected to have a boolean or numeric data type.
936+
Input array. May have any data type.
940937
out (Union[usm_ndarray, None], optional):
941938
Output array to populate.
942939
Array must have the correct shape and the expected data type.
@@ -965,7 +962,7 @@
965962
966963
Args:
967964
x (usm_ndarray):
968-
Input array, expected to have a boolean or numeric data type.
965+
Input array. May have any data type.
969966
out (Union[usm_ndarray, None], optional):
970967
Output array to populate.
971968
Array must have the correct shape and the expected data type.
@@ -993,7 +990,7 @@
993990
994991
Args:
995992
x (usm_ndarray):
996-
Input array, expected to have a boolean or numeric data type.
993+
Input array. May have any data type.
997994
out (Union[usm_ndarray, None], optional):
998995
Output array to populate.
999996
Array must have the correct shape and the expected data type.
@@ -1022,9 +1019,9 @@
10221019
10231020
Args:
10241021
x1 (usm_ndarray):
1025-
First input array, expected to have a boolean or numeric data type.
1022+
First input array. May have any data type.
10261023
x2 (usm_ndarray):
1027-
Second input array, expected to have a boolean or numeric data type.
1024+
Second input array. May have any data type.
10281025
out (Union[usm_ndarray, None], optional):
10291026
Output array to populate.
10301027
Array must have the correct shape and the expected data type.
@@ -1058,9 +1055,9 @@
10581055
10591056
Args:
10601057
x1 (usm_ndarray):
1061-
First input array, expected to have a boolean or numeric data type.
1058+
First input array. May have any data type.
10621059
x2 (usm_ndarray):
1063-
Second input array, expected to have a boolean or numeric data type.
1060+
Second input array. May have any data type.
10641061
out (Union[usm_ndarray, None], optional):
10651062
Output array to populate.
10661063
Array must have the correct shape and the expected data type.
@@ -1244,9 +1241,9 @@
12441241
12451242
Args:
12461243
x1 (usm_ndarray):
1247-
First input array, expected to have a boolean or numeric data type.
1244+
First input array. May have any data type.
12481245
x2 (usm_ndarray):
1249-
Second input array, expected to have a boolean or numeric data type.
1246+
Second input array. May have any data type.
12501247
out (Union[usm_ndarray, None], optional):
12511248
Output array to populate.
12521249
Array must have the correct shape and the expected data type.
@@ -1275,7 +1272,7 @@
12751272
12761273
Args:
12771274
x (usm_ndarray):
1278-
Input array, expected to have a boolean or numeric data type.
1275+
Input array. May have any data type.
12791276
out (usm_ndarray):
12801277
Output array to populate. Array must have the correct
12811278
shape and the expected data type.
@@ -1305,9 +1302,9 @@
13051302
13061303
Args:
13071304
x1 (usm_ndarray):
1308-
First input array, expected to have a boolean or numeric data type.
1305+
First input array. May have any data type.
13091306
x2 (usm_ndarray):
1310-
Second input array, expected to have a boolean or numeric data type.
1307+
Second input array. May have any data type.
13111308
out (Union[usm_ndarray, None], optional):
13121309
Output array to populate.
13131310
Array must have the correct shape and the expected data type.
@@ -1337,9 +1334,9 @@
13371334
13381335
Args:
13391336
x1 (usm_ndarray):
1340-
First input array, expected to have a boolean or numeric data type.
1337+
First input array. May have any data type.
13411338
x2 (usm_ndarray):
1342-
Second input array, expected to have a boolean or numeric data type.
1339+
Second input array. May have any data type.
13431340
out (Union[usm_ndarray, None], optional):
13441341
Output array to populate.
13451342
Array must have the correct shape and the expected data type.
@@ -1369,9 +1366,9 @@
13691366
13701367
Args:
13711368
x1 (usm_ndarray):
1372-
First input array, expected to have a boolean or numeric data type.
1369+
First input array. May have any data type.
13731370
x2 (usm_ndarray):
1374-
Second input array, expected to have a boolean or numeric data type.
1371+
Second input array. May have any data type.
13751372
out (Union[usm_ndarray, None], optional):
13761373
Output array to populate.
13771374
Array must have the correct shape and the expected data type.
@@ -1402,9 +1399,9 @@
14021399
14031400
Args:
14041401
x1 (usm_ndarray):
1405-
First input array, expected to have a boolean or numeric data type.
1402+
First input array. May have any data type.
14061403
x2 (usm_ndarray):
1407-
Second input array, expected to have a boolean or numeric data type.
1404+
Second input array. May have any data type.
14081405
out (Union[usm_ndarray, None], optional):
14091406
Output array to populate.
14101407
Array must have the correct shape and the expected data type.
@@ -1435,9 +1432,9 @@
14351432
14361433
Args:
14371434
x1 (usm_ndarray):
1438-
First input array, expected to have a boolean or numeric data type.
1435+
First input array. May have any data type.
14391436
x2 (usm_ndarray):
1440-
Second input array, expected to have a boolean or numeric data type.
1437+
Second input array. May have any data type.
14411438
out (Union[usm_ndarray, None], optional):
14421439
Output array to populate.
14431440
Array must have the correct shape and the expected data type.
@@ -1871,7 +1868,7 @@
18711868
18721869
Args:
18731870
x (usm_ndarray):
1874-
Input array, expected to have a boolean or numeric data type.
1871+
Input array. May have any data type.
18751872
out (Union[usm_ndarray, None], optional):
18761873
Output array to populate.
18771874
Array must have the correct shape and the expected data type.

0 commit comments

Comments
 (0)