Types

Shared type helpers keep public signatures compact. The most common helper is Triple, used for spatial kernel geometry, stride, padding, dilation, origin, and voxel sizes after normalization.

mlx_lattice.core.types.triple(value, *, name)[source]

Normalize an integer or 3-item sequence into a spatial triple.

Return type:

tuple[int, int, int]

Parameters: