acme_tensor/actions/create/stack.rs
1/*
2 Appellation: stack <mod>
3 Contrib: FL03 <jo3mccain@icloud.com>
4*/
5use crate::shape::Axis;
6
7pub trait Stack<T> {
8 type Output;
9
10 fn stack(&self, other: &T, along: Axis) -> Self::Output;
11}
12
13pub trait Hstack<T = Self> {
14 type Output;
15
16 fn hstack(&self, other: &T) -> Self::Output;
17}
18
19pub trait Vstack<T> {
20 type Output;
21
22 fn vstack(&self, other: &T) -> Self::Output;
23}