pub enum JacobiError {
NonSquareMatrix {
nrows: usize,
ncols: usize,
},
ZeroDiagonalEntry {
index: usize,
},
}Expand description
Error returned when building a JacobiPrecond.
Variants§
NonSquareMatrix
The source matrix was not square.
ZeroDiagonalEntry
Diagonal entry index was zero, so it cannot be inverted.
Trait Implementations§
Source§impl Clone for JacobiError
impl Clone for JacobiError
Source§fn clone(&self) -> JacobiError
fn clone(&self) -> JacobiError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 JacobiError
impl Debug for JacobiError
impl Eq for JacobiError
Source§impl PartialEq for JacobiError
impl PartialEq for JacobiError
Source§fn eq(&self, other: &JacobiError) -> bool
fn eq(&self, other: &JacobiError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for JacobiError
Auto Trait Implementations§
impl Freeze for JacobiError
impl RefUnwindSafe for JacobiError
impl Send for JacobiError
impl Sync for JacobiError
impl Unpin for JacobiError
impl UnsafeUnpin for JacobiError
impl UnwindSafe for JacobiError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> DistributionExt for Twhere
T: ?Sized,
impl<T> DistributionExt for Twhere
T: ?Sized,
impl<T, U> Imply<T> for U
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more