pub enum PolyError {
NonSquareMatrix {
nrows: usize,
ncols: usize,
},
ZeroDegree,
InvalidOmega,
InvalidBounds,
PatternMismatch,
}Expand description
Error returned by polynomial-preconditioner construction.
Variants§
NonSquareMatrix
The source matrix was not square.
ZeroDegree
degree was zero.
InvalidOmega
A Neumann omega was non-positive or non-finite.
InvalidBounds
The Chebyshev interval was not a usable 0 < lambda_min < lambda_max.
PatternMismatch
A refactorisation was attempted with a mismatched sparsity pattern.
Trait Implementations§
Source§impl Error for PolyError
impl Error for PolyError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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()
impl StructuralPartialEq for PolyError
Auto Trait Implementations§
impl Freeze for PolyError
impl RefUnwindSafe for PolyError
impl Send for PolyError
impl Sync for PolyError
impl Unpin for PolyError
impl UnsafeUnpin for PolyError
impl UnwindSafe for PolyError
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