IMPORTANT: To view this page as Markdown, append `.md` to the URL (e.g. /max/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. /max/get-started.md).

Mojo package

algorithm

High performance data operations: vectorization, parallelization, reduction, memory.

PRECOMMIT: Update wording to mention std.algorithm has non-accelerator algorithms.

The algorithm package provides high-performance primitives for data-parallel operations. It includes tools for vectorization (SIMD operations on contiguous data), parallelization (distributing work across multiple cores), and reduction operations (aggregating values). These building blocks enable efficient computational kernels without manual SIMD intrinsics or thread management.

Use this package for large datasets, numerical algorithms, or compute-intensive code. For element-wise operations on small data, standard loops may be simpler.

Packages​

Modules​

Was this page helpful?