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

Mojo trait

Storable

StoreAccess refined with the callable store method.

Implemented traits​

AnyType, StoreAccess, Tensor

Required methods​

store​

def store[width: Int, element_alignment: Int = Int(1)](self, idx: Coord, value: SIMD[Self.dtype, width])

Stores a SIMD vector of elements at idx.

Parameters:

  • ​width (Int): Number of elements to store.
  • ​element_alignment (Int): Assumed alignment of the store in elements.

Args:

Was this page helpful?