Enum ndarray_linalg::error::LinalgError
source · [−]pub enum LinalgError {
NotSquare {
rows: i32,
cols: i32,
},
Lapack(Error),
InvalidStride {
s0: Ixs,
s1: Ixs,
},
MemoryNotCont,
NotStandardShape {
obj: &'static str,
rows: i32,
cols: i32,
},
Shape(ShapeError),
}
Expand description
Master Error type of this crate
Variants
NotSquare
Matrix is not square
Lapack(Error)
LAPACK subroutine returns non-zero code
InvalidStride
Strides of the array is not supported
MemoryNotCont
Memory is not aligned continously
NotStandardShape
Obj cannot be made from a (rows, cols) matrix
Shape(ShapeError)
Strides of the array is not supported
Trait Implementations
sourceimpl Debug for LinalgError
impl Debug for LinalgError
sourceimpl Display for LinalgError
impl Display for LinalgError
sourceimpl Error for LinalgError
impl Error for LinalgError
sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
sourceimpl From<Error> for LinalgError
impl From<Error> for LinalgError
sourceimpl From<ShapeError> for LinalgError
impl From<ShapeError> for LinalgError
sourcefn from(source: ShapeError) -> Self
fn from(source: ShapeError) -> Self
Converts to this type from the input type.
Auto Trait Implementations
impl RefUnwindSafe for LinalgError
impl Send for LinalgError
impl Sync for LinalgError
impl Unpin for LinalgError
impl UnwindSafe for LinalgError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more