Skip to main content

stack

Function stack 

Source
pub fn stack<B: Backend, T: Element, A: ArrayLike<B, T> + Clone>(
    xs: &[A],
    axis: i64,
) -> Array<B, T>
Expand description

Stacks arrays (or scalars) along a new dimension axis.

ยงPanics

Panics if xs is empty or the shapes differ.