Mojo function
strided_store
strided_store[dtype: DType, //, simd_width: Int](value: SIMD[dtype, simd_width], addr: UnsafePointer[Scalar[dtype], address_space=address_space, origin=origin], stride: Int, mask: SIMD[DType.bool, simd_width] = SIMD[DType.bool, simd_width](True))
Loads values from addr according to a specific stride.
Parameters:
- dtype (
DType
): DType ofvalue
, the value to store. - simd_width (
Int
): The width of the SIMD vectors.
Args:
- value (
SIMD
): The values to store. - addr (
UnsafePointer
): The location to store values at. - stride (
Int
): How many lanes to skip before storing again. - mask (
SIMD
): A binary vector which prevents memory access to certain lanes ofvalue
.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!