Algebra

Trait Algebra 

Source
pub trait Algebra<T>
where Self: Sized + Copy + Clone, T: Sized + Copy + Clone,
{ // 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§

Source

fn determinant(&self) -> f64

Get the determinant of the matrix

Source

fn set_inverse(&mut self) -> &mut Self

Set inverse matrix

Source

fn set_transposed(&mut self) -> &mut Self

Set transposed matrix

Source

fn set_adjugate(&mut self) -> &mut Self

Set adjugate matrix

Provided Methods§

Source

fn inverse(&self) -> Self

Get the inverse matrix

Source

fn transposed(&self) -> Self

Get the transposed matrix

Source

fn adjugate(&self) -> Self

Get the adjugate 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.

Implementors§