pub enum PicardError {
NotConverged {
gradient_norm: f64,
tolerance: f64,
iterations: usize,
},
InvalidDimensions {
message: String,
},
SingularMatrix,
ComputationError {
message: String,
},
InvalidConfig {
parameter: String,
message: String,
},
}Expand description
Errors that can occur during PICARD computation.
Variants§
NotConverged
Algorithm did not converge within the maximum number of iterations.
Fields
InvalidDimensions
Input dimensions are invalid.
SingularMatrix
A singular matrix was encountered during computation.
ComputationError
General computation error.
InvalidConfig
Invalid configuration parameter.
Trait Implementations§
Source§impl Clone for PicardError
impl Clone for PicardError
Source§fn clone(&self) -> PicardError
fn clone(&self) -> PicardError
Returns a duplicate of the value. Read more
1.0.0 · 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 PicardError
impl Debug for PicardError
Source§impl Display for PicardError
impl Display for PicardError
Source§impl Error for PicardError
impl Error for PicardError
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()
Auto Trait Implementations§
impl Freeze for PicardError
impl RefUnwindSafe for PicardError
impl Send for PicardError
impl Sync for PicardError
impl Unpin for PicardError
impl UnwindSafe for PicardError
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