pub trait Algebra<T>{
// Required methods
fn determinant(&self) -> f64;
fn set_inverse(&mut self) -> &mut Self;
fn set_transposed(&mut self) -> &mut Self;
fn set_adjugate(&mut self) -> &mut Self;
// Provided methods
fn inverse(&self) -> Self { ... }
fn transposed(&self) -> Self { ... }
fn adjugate(&self) -> Self { ... }
}Expand description
Square matrices algebra
Required Methods§
Sourcefn determinant(&self) -> f64
fn determinant(&self) -> f64
Get the determinant of the matrix
Sourcefn set_inverse(&mut self) -> &mut Self
fn set_inverse(&mut self) -> &mut Self
Set inverse matrix
Sourcefn set_transposed(&mut self) -> &mut Self
fn set_transposed(&mut self) -> &mut Self
Set transposed matrix
Sourcefn set_adjugate(&mut self) -> &mut Self
fn set_adjugate(&mut self) -> &mut Self
Set adjugate matrix
Provided Methods§
Sourcefn transposed(&self) -> Self
fn transposed(&self) -> Self
Get the transposed matrix
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.