pub trait MatExt {
// Required method
fn inverse_or_zero(self) -> Self;
}
Expand description
An extension trait for matrix types.
Required Methods§
sourcefn inverse_or_zero(self) -> Self
fn inverse_or_zero(self) -> Self
Computes the inverse of self
if self
is not zero,
and returns zero otherwise to avoid division by zero.
Object Safety§
This trait is not object safe.