Skip to main content

MatrixOps

Trait MatrixOps 

Source
pub trait MatrixOps<T> {
    // Required methods
    fn matmul(&self, other: &Matrix<T>) -> Result<Matrix<T>, String>;
    fn transpose(&self) -> Matrix<T>;
}
Expand description

Matrix operations (rank 2 specific)

Required Methods§

Source

fn matmul(&self, other: &Matrix<T>) -> Result<Matrix<T>, String>

Matrix multiplication (M x N) * (N x K) -> (M x K)

Source

fn transpose(&self) -> Matrix<T>

Transpose (M x N) -> (N x M)

Implementors§