It would be nice, if giving just an integer (not a range) to the s! macro, would result into a subview.
I imagine it like this
let a = arr3(&[[[1,2,3],[4,5,6]],[[7,8,9],[10,11,12]]]);let a = a.slice(s![0, ..,1]);let r = arr2(&[[2],[5]]);assert_eq!(a, r);
where a is a vector (an array with shape (2,1)). So this would make slicing similar to the a[0, :, 1] syntax in Python's Numpy.
Is this feasible?
It would be nice, if giving just an integer (not a range) to the
s!macro, would result into asubview.I imagine it like this
where a is a vector (an array with shape
(2,1)). So this would make slicing similar to thea[0, :, 1]syntax in Python's Numpy.Is this feasible?