From b0b938e19498983e75ea27284cc7864ce483f16e Mon Sep 17 00:00:00 2001 From: Jaysukh-409 Date: Sat, 6 Jul 2024 14:21:57 +0530 Subject: [PATCH] feat: add boolean dtype support to ndarray/promotion-rules --- .../promotion-rules/lib/promotion_rules.json | 55 ++++++++++++++----- 1 file changed, 42 insertions(+), 13 deletions(-) diff --git a/lib/node_modules/@stdlib/ndarray/promotion-rules/lib/promotion_rules.json b/lib/node_modules/@stdlib/ndarray/promotion-rules/lib/promotion_rules.json index 3d4e85cd837d..ddc2cb81192c 100644 --- a/lib/node_modules/@stdlib/ndarray/promotion-rules/lib/promotion_rules.json +++ b/lib/node_modules/@stdlib/ndarray/promotion-rules/lib/promotion_rules.json @@ -12,7 +12,8 @@ "complex64": "complex128", "complex128": "complex128", "binary": -1, - "generic": "generic" + "generic": "generic", + "bool" : -1 }, "float32": { "float64": "float64", @@ -27,7 +28,8 @@ "complex64": "complex64", "complex128": "complex128", "binary": -1, - "generic": "generic" + "generic": "generic", + "bool": -1 }, "int32": { "float64": "float64", @@ -42,7 +44,8 @@ "complex64": "complex128", "complex128": "complex128", "binary": -1, - "generic": "generic" + "generic": "generic", + "bool": -1 }, "int16": { "float64": "float64", @@ -57,7 +60,8 @@ "complex64": "complex64", "complex128": "complex128", "binary": -1, - "generic": "generic" + "generic": "generic", + "bool": -1 }, "int8": { "float64": "float64", @@ -72,7 +76,8 @@ "complex64": "complex64", "complex128": "complex128", "binary": -1, - "generic": "generic" + "generic": "generic", + "bool": -1 }, "uint32": { "float64": "float64", @@ -87,7 +92,8 @@ "complex64": "complex128", "complex128": "complex128", "binary": -1, - "generic": "generic" + "generic": "generic", + "bool": -1 }, "uint16": { "float64": "float64", @@ -102,7 +108,8 @@ "complex64": "complex64", "complex128": "complex128", "binary": -1, - "generic": "generic" + "generic": "generic", + "bool": -1 }, "uint8": { "float64": "float64", @@ -117,7 +124,8 @@ "complex64": "complex64", "complex128": "complex128", "binary": -1, - "generic": "generic" + "generic": "generic", + "bool": -1 }, "uint8c": { "float64": "float64", @@ -132,7 +140,8 @@ "complex64": "complex64", "complex128": "complex128", "binary": -1, - "generic": "generic" + "generic": "generic", + "bool": -1 }, "complex128": { "float64": "complex128", @@ -147,7 +156,8 @@ "complex64": "complex128", "complex128": "complex128", "binary": -1, - "generic": "generic" + "generic": "generic", + "bool": -1 }, "complex64": { "float64": "complex128", @@ -162,7 +172,8 @@ "complex64": "complex64", "complex128": "complex128", "binary": -1, - "generic": "generic" + "generic": "generic", + "bool": -1 }, "generic": { "float64": "generic", @@ -177,7 +188,8 @@ "complex64": "generic", "complex128": "generic", "binary": -1, - "generic": "generic" + "generic": "generic", + "bool": "generic" }, "binary": { "float64": -1, @@ -192,6 +204,23 @@ "complex64": -1, "complex128": -1, "binary": "binary", - "generic": -1 + "generic": -1, + "bool": -1 + }, + "bool": { + "float64": -1, + "float32": -1, + "int32": -1, + "int16": -1, + "int8": -1, + "uint32": -1, + "uint16": -1, + "uint8": -1, + "uint8c": -1, + "complex64": -1, + "complex128": -1, + "binary": -1, + "generic": "generic", + "bool": "bool" } }