mojo
mojo copied to clipboard
[stdlib] add `SIMD.Mask` alias
adds an alias for a boolean simd vector, and applies it throughout the simd.mojo
file.
i'd prefer a top level alias like alias Mask = SIMD[DType.bool, _]
, but that doesn't work right now (https://github.com/modularml/mojo/issues/1842)
getting rid of the default value for the simd size
parameter fixes it though.
✅🟣 This contribution has been merged 🟣✅
Your pull request has been merged to the internal upstream Mojo sources. It will be reflected here in the Mojo repository on the nightly branch during the next Mojo nightly release, typically within the next 24-48 hours.
We use Copybara to merge external contributions, click here to learn more.