Coordinate management

Coordinate managers own coordinate arrays, active-row scalars, and relation caches. A CoordinateMapKey is only valid inside the manager that created it. This lets operations compare coordinate identity without comparing every row.

The cache key for a kernel relation includes:

  • input coordinate key;

  • optional explicit target coordinate key;

  • normalized kernel geometry;

  • relation kind, such as forward, target, submanifold, transposed, or generative.

This page documents the canonical manager API. Higher-level users usually construct managers indirectly by creating mlx_lattice.SparseTensor objects.