Trait SquareMatrixOperations

Source
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§

Source

fn inverse(&self) -> Result<Self, PoseidonParameterError>
where Self: Sized,

Compute the matrix inverse, if it exists

Source

fn identity() -> Self

Construct an identity matrix

Source

fn minors(&self) -> Self

Compute the matrix of minors

Source

fn cofactors(&self) -> Self

Compute the matrix of cofactors

Source

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.

Implementors§

Source§

impl<const N_ROWS: usize, const N_ELEMENTS: usize> SquareMatrixOperations for SquareMatrix<N_ROWS, N_ELEMENTS>