cubed-dev / cubed

Bounded-memory serverless distributed N-dimensional array processing
https://cubed-dev.github.io/cubed/
Apache License 2.0
122 stars 14 forks source link

More lenient dtype support #550

Closed tomwhite closed 3 months ago

tomwhite commented 3 months ago

Some array API implementations are more lenient in the dtypes they allow for certain operations - e.g. sum can be used on arrays of bool (with return type int64). The array API doesn't rule out this behaviour - it's just not a part of the spec.

This is needed to improve Xarray integration, see https://github.com/cubed-dev/cubed-xarray/issues/8