Skip to main content

Mojo function

strided_store

strided_store[type: DType, //, simd_width: Int](value: SIMD[type, simd_width], addr: UnsafePointer[SIMD[type, 1], address_space, alignment, origin], stride: Int, mask: SIMD[bool, simd_width] = SIMD(1))

Loads values from addr according to a specific stride.

Parameters:

  • type (DType): DType of value, the value to store.
  • simd_width (Int): The width of the SIMD vectors.

Args:

  • value (SIMD[type, simd_width]): The values to store.
  • addr (UnsafePointer[SIMD[type, 1], address_space, alignment, origin]): The location to store values at.
  • stride (Int): How many lanes to skip before storing again.
  • mask (SIMD[bool, simd_width]): A binary vector which prevents memory access to certain lanes of value.