pub fn subset_vec(v: &[f64], indices: &[usize]) -> Vec<f64>
Extract elements from a slice by indices.