fn centroid(vectors: &[&[f32]]) -> Vec<f32>
Compute the centroid (element-wise mean) of a set of vectors.