You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
use ndarray::{Array,Axis, stack, arr2};let a = Array::linspace(0.,1.,5).into_shape((5,1)).unwrap();let b = Array::<f64,_>::ones((5,1));let res = stack(Axis(1),&[b.view(), a.view()]);assert!(res == Ok(arr2(&[[1.,0.],[1.,0.25],[1.,0.5],[1.,0.75],[1.,1.]])));
It could be worth to have an example in ndarray_for_numpy_users section of the docs.