We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ff53849 commit 3c639edCopy full SHA for 3c639ed
1 file changed
src/blosc2/lazyexpr.py
@@ -1819,6 +1819,8 @@ def infer_reduction_dtype(dtype, operation):
1819
dtype, np.float32 if dtype in (np.float32, np.complex64) else blosc2.DEFAULT_FLOAT
1820
)
1821
if operation in {ReduceOp.SUM, ReduceOp.PROD}:
1822
+ if np.issubdtype(dtype, np.bool_):
1823
+ return np.int64
1824
if np.issubdtype(dtype, np.unsignedinteger):
1825
return np.result_type(dtype, np.uint64)
1826
return np.result_type(dtype, np.int64 if np.issubdtype(dtype, np.integer) else my_float)
0 commit comments