Closed libratiger closed 2 years ago
when the input is a Vec<f32> or a Vec<Vec<f32>>, one uses move, the another uses reference, this is not consistent.
Vec<f32>
Vec<Vec<f32>>
This is for performance, but make this clearly in docs is better.
let array = Array::from(vec![0.0, 1.0, 2.0, 3.0]); let array = Array::from(&vec![vec![0.0, 1.0], vec![2.0, 3.0]]);
Can you please make a PR for the docs?
when the input is a
Vec<f32>
or aVec<Vec<f32>>
, one uses move, the another uses reference, this is not consistent.This is for performance, but make this clearly in docs is better.