mojo icon indicating copy to clipboard operation
mojo copied to clipboard

[stdlib] add `SIMD.Mask` alias

Open helehex opened this issue 9 months ago • 1 comments

adds an alias for a boolean simd vector, and applies it throughout the simd.mojo file.

helehex avatar May 04 '24 19:05 helehex

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.

helehex avatar May 04 '24 21:05 helehex

✅🟣 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.

modularbot avatar May 08 '24 19:05 modularbot