The standard does not define bitwise_left_shift or bitwise_right_shift for booleans, but does (strictly speaking) define the operators for boolean input in "Bitwise operators".
Bitwise operators should be defined for arrays having integer and boolean data types.
This may be an oversight, but if not, what should the output dtype be? bool per typical type promotion, or something else? NumPy produces int8, and JAX prefers int32.
Crossref jax-ml/jax#35537.
The standard does not define
bitwise_left_shiftorbitwise_right_shiftfor booleans, but does (strictly speaking) define the operators for boolean input in "Bitwise operators".This may be an oversight, but if not, what should the output dtype be?
boolper typical type promotion, or something else? NumPy producesint8, and JAX prefersint32.Crossref jax-ml/jax#35537.