pub enum KrylovError {
InvalidOptions {
solver: &'static str,
reason: String,
},
ZeroInitialVector {
solver: &'static str,
},
NoAffineCoefficient,
NonHermitian {
solver: &'static str,
source: Error,
},
Operation {
solver: &'static str,
source: Error,
},
}Expand description
Error returned by the matrix-free Krylov solvers.
Variants§
InvalidOptions
Invalid solver options.
Fields
ZeroInitialVector
The initial vector is numerically zero.
NoAffineCoefficient
An affine GMRES call supplied only zero coefficients.
NonHermitian
The projected operator was not Hermitian.
Fields
Operation
An underlying tensor operation (operator application, vector-space arithmetic, or backend call) failed.
Trait Implementations§
Source§impl Debug for KrylovError
impl Debug for KrylovError
Source§impl Display for KrylovError
impl Display for KrylovError
Source§impl Error for KrylovError
impl Error for KrylovError
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()
Auto Trait Implementations§
impl Freeze for KrylovError
impl RefUnwindSafe for KrylovError
impl Send for KrylovError
impl Sync for KrylovError
impl Unpin for KrylovError
impl UnsafeUnpin for KrylovError
impl UnwindSafe for KrylovError
Blanket Implementations§
§impl<U> As for U
impl<U> As for U
§fn as_<T>(self) -> Twhere
T: CastFrom<U>,
U: Sized,
fn as_<T>(self) -> Twhere
T: CastFrom<U>,
U: Sized,
Casts
self to type T. The semantics of numeric casting with the as operator are followed, so <T as As>::as_::<U> can be used in the same way as T as U for numeric conversions. Read moreSource§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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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