Skip to main content

Module dim

Module dim 

Source
Expand description

Dimensionality selector shared by the unified depth/fdata dispatchers.

Several depth measures and fdata::mean historically shipped _1d / _2d variants where the _2d path was a thin shim that simply forwarded to the _1d primitive (the 2D computation never diverged from the 1D one — both iterate the flattened column-major grid identically). The unified dispatchers take an explicit Dim argument so callers get one ergonomic name(…, dim) entry point, while the redundant _2d shims are retired via #[deprecated].

The enum is #[non_exhaustive] so future dimensionalities (or a genuinely divergent 2D path) can be added without a breaking change.

Enums§

Dim
Dimensionality selector for the unified depth/fdata dispatchers.