Open
Description
Following #909, the API for linalg::reduce_rows_by_keys
can take custom iterators, in order to save intermediate steps in ann_kmeans_balanced
. But raw-pointer/iterator APIs are being deprecated in favor of mdspan.
We should provide appropriate helpers and types for iterator-based mdspan, and change this API accordingly. See discussions on the aforementioned PR.