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§
source§impl Debug for LinalgError
impl Debug for LinalgError
source§impl Display for LinalgError
impl Display for LinalgError
source§impl Error for LinalgError
impl Error for LinalgError
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()
source§impl From<Error> for LinalgError
impl From<Error> for LinalgError
source§impl From<ShapeError> for LinalgError
impl From<ShapeError> for LinalgError
source§fn from(source: ShapeError) -> Self
fn from(source: ShapeError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for LinalgError
impl RefUnwindSafe for LinalgError
impl Send for LinalgError
impl Sync for LinalgError
impl Unpin for LinalgError
impl UnwindSafe for LinalgError
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