Function neuronika::cat [−][src]
pub fn cat<Lhs, Rhs>(
lhs: Lhs,
rhs: Rhs,
axis: usize
) -> <Lhs as Cat<Rhs>>::Output where
Lhs: Cat<Rhs>,
Expand description
Concatenates the variables lhs
and rhs
along axis
.
All variables must have the same shape, except in the concatenating dimension.
Arguments
-
lhs
- variable. -
rhs
- other variable. -
axis
- axis to concatenate along to.
Panics
If the variables have mismatching shapes, apart from along axis, if the variables are empty,
if axis
is out of bounds or if the result is larger than is possible to represent.