pub enum CgFailure<R> {
NotConverged {
iterations: usize,
residual: R,
},
NotPositiveDefinite {
iteration: usize,
},
LengthMismatch {
expected: usize,
found: usize,
},
}Expand description
Why a conjugate-gradient solve stopped without converging.
Variants§
NotConverged
The iteration limit was reached. Carries the residual it reached.
NotPositiveDefinite
A breakdown: the operator is not positive definite, so a search direction had non-positive curvature.
LengthMismatch
The right-hand side’s length does not match what the operator produces.
Trait Implementations§
impl<R: Eq> Eq for CgFailure<R>
Source§impl<R: Debug + Display> Error for CgFailure<R>
impl<R: Debug + Display> Error for CgFailure<R>
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<R: PartialEq> StructuralPartialEq for CgFailure<R>
Auto Trait Implementations§
impl<R> Freeze for CgFailure<R>where
R: Freeze,
impl<R> RefUnwindSafe for CgFailure<R>where
R: RefUnwindSafe,
impl<R> Send for CgFailure<R>where
R: Send,
impl<R> Sync for CgFailure<R>where
R: Sync,
impl<R> Unpin for CgFailure<R>where
R: Unpin,
impl<R> UnsafeUnpin for CgFailure<R>where
R: UnsafeUnpin,
impl<R> UnwindSafe for CgFailure<R>where
R: UnwindSafe,
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