Mojo function
splat
splat[size: Int, //, dtype: DType](value: SIMD[DType.bool, size]) -> SIMD[dtype, size]
Elementwise splat the boolean value of each element in the SIMD vector into all bits of the corresponding element in a new SIMD vector.
Parameters:
Args:
- βvalue (
SIMD): The value to check.
Returns:
SIMD: A SIMD vector where each element is filled with 1 bits if the
corresponding element in value is True, or filled with 0 bits
otherwise.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!