Skip to main content
Log in

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.