pub enum CsError {
Show 14 variants
ShapeMismatch {
expected: Vec<usize>,
got: Vec<usize>,
},
DimensionMismatch {
a: usize,
b: usize,
},
NotConverged {
iter: usize,
residual: f64,
},
InvalidParameter(String),
NumericalInstability(String),
UnsupportedSmVersion(u32),
SingularMatrix(String),
IndexOutOfBounds {
index: usize,
len: usize,
},
EmptyInput,
SupportTooLarge {
requested: usize,
max: usize,
},
InvalidSparsity(usize),
InvalidRank(usize),
InvalidConfiguration(String),
RecoveryFailed(String),
}Expand description
Top-level error type for compressed-sensing operations.
Variants§
ShapeMismatch
DimensionMismatch
NotConverged
InvalidParameter(String)
NumericalInstability(String)
UnsupportedSmVersion(u32)
SingularMatrix(String)
IndexOutOfBounds
EmptyInput
SupportTooLarge
InvalidSparsity(usize)
InvalidRank(usize)
InvalidConfiguration(String)
RecoveryFailed(String)
Trait Implementations§
Source§impl Error for CsError
impl Error for CsError
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 CsError
impl RefUnwindSafe for CsError
impl Send for CsError
impl Sync for CsError
impl Unpin for CsError
impl UnsafeUnpin for CsError
impl UnwindSafe for CsError
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