#[non_exhaustive]
pub enum CholeskyError {
NotPositiveDefinite,
}
Expand description
Possible errors produced by the Cholesky factorization.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
NotPositiveDefinite
The matrix is not positive definite.
Trait Implementations§
source§impl Clone for CholeskyError
impl Clone for CholeskyError
source§fn clone(&self) -> CholeskyError
fn clone(&self) -> CholeskyError
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for CholeskyError
impl Debug for CholeskyError
source§impl Display for CholeskyError
impl Display for CholeskyError
source§impl Error for CholeskyError
impl Error for CholeskyError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl PartialEq<CholeskyError> for CholeskyError
impl PartialEq<CholeskyError> for CholeskyError
source§fn eq(&self, other: &CholeskyError) -> bool
fn eq(&self, other: &CholeskyError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for CholeskyError
impl Eq for CholeskyError
impl StructuralEq for CholeskyError
impl StructuralPartialEq for CholeskyError
Auto Trait Implementations§
impl RefUnwindSafe for CholeskyError
impl Send for CholeskyError
impl Sync for CholeskyError
impl Unpin for CholeskyError
impl UnwindSafe for CholeskyError
Blanket Implementations§
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self
from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self
is actually part of its subset T
(and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset
but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self
to the equivalent element of its superset.