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).

element

Provides element-based access to memory using layout-driven vectorization.

This module implements efficient memory access patterns for multi-dimensional data using the layout system. It provides abstractions for loading and storing data with specific memory layouts, enabling vectorized operations that respect the underlying memory organization.

Key components:

  • Element: A wrapper around SIMD types that provides layout-driven vectorized operations
  • MemoryElement: Represents data in memory organized according to a specific layout

These components enable efficient tensor operations by ensuring memory accesses follow optimal patterns defined by the layout system.

Structs

  • Element: A wrapper around SIMD types that provides layout-driven vectorized operations.
  • MemoryElement: Represents data in memory organized according to a specific layout.