Function neuronika::stack [−][src]
pub fn stack<Lhs, Rhs>(
lhs: Lhs,
rhs: Rhs,
axis: usize
) -> <Lhs as Stack<Rhs>>::Output where
Lhs: Stack<Rhs>,
Expand description
Stacks the variables lhs
and rhs
along axis
.
All variables must have the same shape.
Arguments
-
lhs
- variable. -
rhs
- other variable. -
axis
- axis to stack 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.