pub trait CoreMatrixOps {
// Required methods
fn add(&self, other: &Matrix) -> Result<Matrix, MathError>;
fn multiply(&self, other: &Matrix) -> Result<Matrix, MathError>;
fn transpose(&self) -> Matrix;
fn inverse(&self) -> Matrix;
}Expand description
Core matrix operations that work directly on Matrix types
Required Methods§
fn add(&self, other: &Matrix) -> Result<Matrix, MathError>
fn multiply(&self, other: &Matrix) -> Result<Matrix, MathError>
fn transpose(&self) -> Matrix
fn inverse(&self) -> Matrix
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".