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 module

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.

Was this page helpful?