IMPORTANT: To view this page as Markdown, append `.md` to the URL (e.g. /docs/manual/basics.md). For the complete Mojo documentation index, see llms.txt.
Skip to main content
Version: Nightly
For the complete Mojo documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /docs/manual/basics.md).

strided_load

strided_load[dtype: DType, //, simd_width: Int, *, invariant: Bool = False](addr: UnsafePointer[Scalar[dtype], address_space=addr.address_space], stride: Int, mask: SIMD[DType.bool, simd_width] = SIMD(fill=True)) -> SIMD[dtype, simd_width]

Loads values from addr according to a specific stride.

Parameters:

  • dtype (DType): DType of value, the value to store.
  • simd_width (Int): The width of the SIMD vectors.
  • invariant (Bool): Whether the memory is load invariant.

Args:

Returns:

SIMD[dtype, simd_width]: A vector containing the loaded data.