pub enum BsrError {
InvalidBlockSize {
block_rows: usize,
block_cols: usize,
},
IncompatibleDimensions {
nrows: usize,
ncols: usize,
block_rows: usize,
block_cols: usize,
},
InvalidIndptr {
expected: usize,
actual: usize,
},
DataIndicesMismatch {
num_blocks: usize,
num_indices: usize,
},
InvalidBlockIndex {
index: usize,
nb_cols: usize,
},
InvalidIndptrOrder,
InvalidBlockData {
block_idx: usize,
expected: usize,
actual: usize,
},
}Expand description
Error type for BSR matrix operations.
Variants§
InvalidBlockSize
Invalid block dimensions.
IncompatibleDimensions
Matrix dimensions not compatible with block size.
Fields
InvalidIndptr
Invalid indptr array length.
DataIndicesMismatch
Mismatched data/indices counts.
InvalidBlockIndex
Block column index out of bounds.
InvalidIndptrOrder
Indptr not monotonically increasing.
InvalidBlockData
Block data has wrong size.
Trait Implementations§
Source§impl Error for BsrError
impl Error for BsrError
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 BsrError
impl StructuralPartialEq for BsrError
Auto Trait Implementations§
impl Freeze for BsrError
impl RefUnwindSafe for BsrError
impl Send for BsrError
impl Sync for BsrError
impl Unpin for BsrError
impl UnwindSafe for BsrError
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