Macro ndarray::concatenate[][src]

macro_rules! concatenate {
    ($axis : expr, $($array : expr), +) => { ... };
}
Expand description

Concatenate arrays along the given axis.

Uses the concatenate function, calling ArrayView::from(&a) on each argument a.

Panics if the concatenate function would return an error.

extern crate ndarray;

use ndarray::{arr2, concatenate, Axis};


let a = arr2(&[[2., 2.],
               [3., 3.]]);
assert!(
    concatenate![Axis(0), a, a]
    == arr2(&[[2., 2.],
              [3., 3.],
              [2., 2.],
              [3., 3.]])
);