Skip to main content
Log in

Mojo function

strided_store

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

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=address_space, alignment=alignment, origin=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.