Trait ndarray_linalg::solveh::DeterminantH [−][src]
pub trait DeterminantH { type Elem: Scalar; fn deth(&self) -> Result<<Self::Elem as AssociatedReal>::Real>; fn sln_deth(
&self
) -> Result<(<Self::Elem as AssociatedReal>::Real, <Self::Elem as AssociatedReal>::Real)>; }
An interface for calculating determinants of Hermitian (or real symmetric) matrix refs.
Associated Types
Required Methods
fn deth(&self) -> Result<<Self::Elem as AssociatedReal>::Real>
Computes the determinant of the Hermitian (or real symmetric) matrix.
fn sln_deth(
&self
) -> Result<(<Self::Elem as AssociatedReal>::Real, <Self::Elem as AssociatedReal>::Real)>
&self
) -> Result<(<Self::Elem as AssociatedReal>::Real, <Self::Elem as AssociatedReal>::Real)>
Computes the (sign, natural_log)
of the determinant of the Hermitian
(or real symmetric) matrix.
The natural_log
is the natural logarithm of the absolute value of the
determinant. If the determinant is zero, sign
is 0 and natural_log
is negative infinity.
To obtain the determinant, you can compute sign * natural_log.exp()
or just call .deth()
instead.
This method is more robust than .deth()
to very small or very large
determinants since it returns the natural logarithm of the determinant
rather than the determinant itself.
Implementations on Foreign Types
impl<A, S> DeterminantH for ArrayBase<S, Ix2> where
A: Scalar,
S: Data<Elem = A>,
[src]
impl<A, S> DeterminantH for ArrayBase<S, Ix2> where
A: Scalar,
S: Data<Elem = A>,