Skip to content

Commit 29f4e2b

Browse files
authored
feat: add boolean dtype support to ndarray/promotion-rules
PR-URL: #2524 Ref: #2500 Reviewed-by: Athan Reines <kgryte@gmail.com>
1 parent 271f5d5 commit 29f4e2b

File tree

1 file changed

+42
-13
lines changed

1 file changed

+42
-13
lines changed

lib/node_modules/@stdlib/ndarray/promotion-rules/lib/promotion_rules.json

+42-13
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212
"complex64": "complex128",
1313
"complex128": "complex128",
1414
"binary": -1,
15-
"generic": "generic"
15+
"generic": "generic",
16+
"bool" : -1
1617
},
1718
"float32": {
1819
"float64": "float64",
@@ -27,7 +28,8 @@
2728
"complex64": "complex64",
2829
"complex128": "complex128",
2930
"binary": -1,
30-
"generic": "generic"
31+
"generic": "generic",
32+
"bool": -1
3133
},
3234
"int32": {
3335
"float64": "float64",
@@ -42,7 +44,8 @@
4244
"complex64": "complex128",
4345
"complex128": "complex128",
4446
"binary": -1,
45-
"generic": "generic"
47+
"generic": "generic",
48+
"bool": -1
4649
},
4750
"int16": {
4851
"float64": "float64",
@@ -57,7 +60,8 @@
5760
"complex64": "complex64",
5861
"complex128": "complex128",
5962
"binary": -1,
60-
"generic": "generic"
63+
"generic": "generic",
64+
"bool": -1
6165
},
6266
"int8": {
6367
"float64": "float64",
@@ -72,7 +76,8 @@
7276
"complex64": "complex64",
7377
"complex128": "complex128",
7478
"binary": -1,
75-
"generic": "generic"
79+
"generic": "generic",
80+
"bool": -1
7681
},
7782
"uint32": {
7883
"float64": "float64",
@@ -87,7 +92,8 @@
8792
"complex64": "complex128",
8893
"complex128": "complex128",
8994
"binary": -1,
90-
"generic": "generic"
95+
"generic": "generic",
96+
"bool": -1
9197
},
9298
"uint16": {
9399
"float64": "float64",
@@ -102,7 +108,8 @@
102108
"complex64": "complex64",
103109
"complex128": "complex128",
104110
"binary": -1,
105-
"generic": "generic"
111+
"generic": "generic",
112+
"bool": -1
106113
},
107114
"uint8": {
108115
"float64": "float64",
@@ -117,7 +124,8 @@
117124
"complex64": "complex64",
118125
"complex128": "complex128",
119126
"binary": -1,
120-
"generic": "generic"
127+
"generic": "generic",
128+
"bool": -1
121129
},
122130
"uint8c": {
123131
"float64": "float64",
@@ -132,7 +140,8 @@
132140
"complex64": "complex64",
133141
"complex128": "complex128",
134142
"binary": -1,
135-
"generic": "generic"
143+
"generic": "generic",
144+
"bool": -1
136145
},
137146
"complex128": {
138147
"float64": "complex128",
@@ -147,7 +156,8 @@
147156
"complex64": "complex128",
148157
"complex128": "complex128",
149158
"binary": -1,
150-
"generic": "generic"
159+
"generic": "generic",
160+
"bool": -1
151161
},
152162
"complex64": {
153163
"float64": "complex128",
@@ -162,7 +172,8 @@
162172
"complex64": "complex64",
163173
"complex128": "complex128",
164174
"binary": -1,
165-
"generic": "generic"
175+
"generic": "generic",
176+
"bool": -1
166177
},
167178
"generic": {
168179
"float64": "generic",
@@ -177,7 +188,8 @@
177188
"complex64": "generic",
178189
"complex128": "generic",
179190
"binary": -1,
180-
"generic": "generic"
191+
"generic": "generic",
192+
"bool": "generic"
181193
},
182194
"binary": {
183195
"float64": -1,
@@ -192,6 +204,23 @@
192204
"complex64": -1,
193205
"complex128": -1,
194206
"binary": "binary",
195-
"generic": -1
207+
"generic": -1,
208+
"bool": -1
209+
},
210+
"bool": {
211+
"float64": -1,
212+
"float32": -1,
213+
"int32": -1,
214+
"int16": -1,
215+
"int8": -1,
216+
"uint32": -1,
217+
"uint16": -1,
218+
"uint8": -1,
219+
"uint8c": -1,
220+
"complex64": -1,
221+
"complex128": -1,
222+
"binary": -1,
223+
"generic": "generic",
224+
"bool": "bool"
196225
}
197226
}

0 commit comments

Comments
 (0)