fn check_inputs( n_fields: usize, n_bdirs: usize, lens: impl Iterator<Item = usize>, n: usize, ) -> usize
Validate the shared preconditions of both entry points and return (n_orientations, n_voxels).
(n_orientations, n_voxels)