pub fn read_vectors(path: &Path) -> Result<(Vec<f32>, usize, usize)>Expand description
Read a row-major f32 dataset, returning (data, n, dim).
The format is selected by extension: .npy (NumPy v1.0, little-endian
f32, C order) or .fbin/.bin ([u32 n][u32 dim][f32 data], the
big-ann-benchmarks layout).
ยงErrors
Returns an error if the file is missing, the extension is unknown, or the contents do not parse as the expected format.