Skip to main content

stack

Function stack 

Source
pub fn stack<T: Element>(
    arrays: &[Array<T, IxDyn>],
    axis: usize,
) -> FerrayResult<Array<T, IxDyn>>
Expand description

Join a sequence of arrays along a new axis.

All arrays must have the same shape. The result has one more dimension than the inputs.

Analogous to numpy.stack().

ยงErrors

Returns FerrayError::InvalidValue if the array list is empty. Returns FerrayError::ShapeMismatch if shapes differ. Returns FerrayError::AxisOutOfBounds if axis > ndim.