pub trait DataRef: Sync {
// Required methods
fn n(&self) -> usize;
fn d(&self) -> usize;
fn row(&self, i: usize) -> &[f32];
}Expand description
Trait for read-only access to a 2D dataset of f32 rows.
Implemented for [Vec<f32>] (so &Vec<Vec<f32>> works via auto-deref)
and for FlatRef (zero-copy flat buffer input).