Function stack
Source pub fn stack<T: Num, R: Repr<Item = T>, S: DimTrait + LessDimTrait, D: Device>(
matrices: &[Matrix<R, S, D>],
axis: usize,
) -> Matrix<Owned<T>, DimDyn, D>
Expand description
Stack a sequence of matrices along a new axis.
§Arguments
matrices
- A slice of matrices to stack.
axis
- The axis along which to stack the matrices.
§Panics
- If the matrices do not have the same shape.
- If the axis is out of bounds.