pub trait SquareMatrixOperations {
// Required methods
fn inverse(&self) -> Result<Self, PoseidonParameterError>
where Self: Sized;
fn identity() -> Self;
fn minors(&self) -> Self;
fn cofactors(&self) -> Self;
fn determinant(&self) -> Fq;
}
Expand description
Matrix operations that are defined on square matrices.
Required Methods§
Sourcefn inverse(&self) -> Result<Self, PoseidonParameterError>where
Self: Sized,
fn inverse(&self) -> Result<Self, PoseidonParameterError>where
Self: Sized,
Compute the matrix inverse, if it exists
Sourcefn determinant(&self) -> Fq
fn determinant(&self) -> Fq
Compute the matrix determinant
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.