Enum newton_rootfinder::errors::SolverError [−][src]
pub enum SolverError<M, D> where
M: Model<D>,
D: Dim,
DefaultAllocator: Allocator<f64, D>,
DefaultAllocator: Allocator<f64, D, D>, {
NonConvergenceError,
ModelInitialEvaluationError(String),
ModelEvaluationError(ModelError<M, D>),
JacobianError(SolverInternalError<M, D>),
FinalEvaluationError,
}
Expand description
Error returned by the crate::solver::RootFinder::solve method
Exit status:
- SolverError::NonConvergenceError : finished all the iterations but didn’t find a root
- SolverError::ModelInitialEvaluationError : the algorithm must be able to evaluate the model correctly at the begin of the resolution process, it failed in that case
- SolverError::ModelEvaluationError : during the iterative process, while performing an update, a model error occured
- SolverError::JacobianError : during the jacobian evaluation, an error occured
- SolverError::FinalEvaluationError : the algorithm managed to converged but the model returned an error at convergence
Variants
ModelInitialEvaluationError(String)
Tuple Fields of ModelInitialEvaluationError
0: String
ModelEvaluationError(ModelError<M, D>)
Tuple Fields of ModelEvaluationError
0: ModelError<M, D>
JacobianError(SolverInternalError<M, D>)
Tuple Fields of JacobianError
0: SolverInternalError<M, D>
Trait Implementations
impl<M, D> Debug for SolverError<M, D> where
M: Model<D>,
D: Dim,
DefaultAllocator: Allocator<f64, D>,
DefaultAllocator: Allocator<f64, D, D>,
impl<M, D> Debug for SolverError<M, D> where
M: Model<D>,
D: Dim,
DefaultAllocator: Allocator<f64, D>,
DefaultAllocator: Allocator<f64, D, D>,
impl<M, D> Display for SolverError<M, D> where
M: Model<D>,
D: Dim,
DefaultAllocator: Allocator<f64, D>,
DefaultAllocator: Allocator<f64, D, D>,
impl<M, D> Display for SolverError<M, D> where
M: Model<D>,
D: Dim,
DefaultAllocator: Allocator<f64, D>,
DefaultAllocator: Allocator<f64, D, D>,
impl<M, D> Error for SolverError<M, D> where
M: Model<D>,
D: Dim,
DefaultAllocator: Allocator<f64, D>,
DefaultAllocator: Allocator<f64, D, D>,
impl<M, D> Error for SolverError<M, D> where
M: Model<D>,
D: Dim,
DefaultAllocator: Allocator<f64, D>,
DefaultAllocator: Allocator<f64, D, D>,
Auto Trait Implementations
impl<M, D> RefUnwindSafe for SolverError<M, D> where
<M as Model<D>>::InaccurateValuesError: RefUnwindSafe,
<M as Model<D>>::UnusableValuesError: RefUnwindSafe,
impl<M, D> Send for SolverError<M, D> where
<M as Model<D>>::InaccurateValuesError: Send,
<M as Model<D>>::UnusableValuesError: Send,
impl<M, D> Sync for SolverError<M, D> where
<M as Model<D>>::InaccurateValuesError: Sync,
<M as Model<D>>::UnusableValuesError: Sync,
impl<M, D> Unpin for SolverError<M, D> where
<M as Model<D>>::InaccurateValuesError: Unpin,
<M as Model<D>>::UnusableValuesError: Unpin,
impl<M, D> UnwindSafe for SolverError<M, D> where
<M as Model<D>>::InaccurateValuesError: UnwindSafe,
<M as Model<D>>::UnusableValuesError: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
The inverse inclusion map: attempts to construct self
from the equivalent element of its
superset. Read more
pub fn is_in_subset(&self) -> bool
pub fn is_in_subset(&self) -> bool
Checks if self
is actually part of its subset T
(and can be converted to it).
pub fn to_subset_unchecked(&self) -> SS
pub fn to_subset_unchecked(&self) -> SS
Use with care! Same as self.to_subset
but without any property checks. Always succeeds.
pub fn from_subset(element: &SS) -> SP
pub fn from_subset(element: &SS) -> SP
The inclusion map: converts self
to the equivalent element of its superset.