pub enum EllError {
InvalidDataDimensions {
expected_rows: usize,
actual_rows: usize,
expected_width: usize,
actual_width: usize,
},
DimensionMismatch {
data_dims: (usize, usize),
indices_dims: (usize, usize),
},
InvalidColumnIndex {
row: usize,
pos: usize,
index: usize,
ncols: usize,
},
TooManyNonZeros {
row: usize,
nnz: usize,
max_nnz: usize,
},
}Expand description
Error type for ELL matrix operations.
Variants§
InvalidDataDimensions
Data array has wrong dimensions.
Fields
DimensionMismatch
Data and indices have different dimensions.
Fields
InvalidColumnIndex
Column index out of bounds.
Fields
TooManyNonZeros
Too many non-zeros in a row.
Trait Implementations§
Source§impl Error for EllError
impl Error for EllError
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 Eq for EllError
impl StructuralPartialEq for EllError
Auto Trait Implementations§
impl Freeze for EllError
impl RefUnwindSafe for EllError
impl Send for EllError
impl Sync for EllError
impl Unpin for EllError
impl UnwindSafe for EllError
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