[−][src]Macro ndarray::stack
Stack arrays along the new axis.
Uses the stack
function, calling ArrayView::from(&a)
on each
argument a
.
Panics if the stack
function would return an error.
extern crate ndarray; use ndarray::{arr2, arr3, stack, Axis}; let a = arr2(&[[2., 2.], [3., 3.]]); assert!( stack![Axis(0), a, a] == arr3(&[[[2., 2.], [3., 3.]], [[2., 2.], [3., 3.]]]) );