Skip to main content

stack

Function stack 

Source
pub fn stack<T: Element>(
    arrays: &[Array<T, IxDyn>],
    axis: usize,
) -> FerrumResult<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 FerrumError::InvalidValue if the array list is empty. Returns FerrumError::ShapeMismatch if shapes differ. Returns FerrumError::AxisOutOfBounds if axis > ndim.