pub trait Matmul<T> { type Output; fn matmul(&self, other: &T) -> Self::Output; }
A trait for matrix multiplication.
┌───────┐ ┌─────┐ ┌─────┐ │ 1 1 1 │ │ 1 2 │ │ 4 5 │ │ 2 1 2 │.matmul(│ 2 1 │)=│ 6 9 │ └───────┘ │ 1 2 │ └─────┘ └─────┘