寻找与( https://doc.rust-lang.org/std/vec/struct.Vec.html#method.split_off ).split_of一起使用的函数的功能Vec
目前我正在尝试使用该功能split_at:(文档:https ://docs.rs/ndarray/0.13.1/ndarray/struct.ArrayBase.html#method.split_at )
用法:
let mut data: Array2<f32> = array![[1.,2.],[3.,4.],[5.,6.],[7.,8.]];
let split = data.split_at(Axis(0),1);
得到错误:
method not found in `ndarray::ArrayBase<ndarray::data_repr::OwnedRepr<{float}>, ndarray::dimension::dim::Dim<[usize; 2]>>`
我在这里想念什么?