pub enum UmfpackError {
EmptyMatrix,
NonSquareMatrix {
rows: usize,
columns: usize,
},
InvalidCsr(&'static str),
IndexOutOfRange(usize),
DimensionMismatch {
expected: usize,
actual: usize,
},
NonContiguousArray(&'static str),
DataUnavailable(&'static str),
NativeFailure {
operation: &'static str,
status: i32,
},
NullHandle(&'static str),
}Expand description
Errors returned by UMFPACK bindings.
Variants§
EmptyMatrix
The input matrix has a zero-sized dimension.
NonSquareMatrix
UMFPACK’s direct solver requires a square matrix.
InvalidCsr(&'static str)
The CSR data does not satisfy the expected storage invariants.
IndexOutOfRange(usize)
A matrix dimension or sparse index cannot be represented by UMFPACK’s 64-bit index type.
DimensionMismatch
A right-hand side or solution has the wrong length.
NonContiguousArray(&'static str)
An array argument is not contiguous in memory.
An array argument does not expose its backing data.
NativeFailure
UMFPACK returned a failure status.
NullHandle(&'static str)
UMFPACK reported success but did not return the expected native handle.
Trait Implementations§
Source§impl Clone for UmfpackError
impl Clone for UmfpackError
Source§fn clone(&self) -> UmfpackError
fn clone(&self) -> UmfpackError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for UmfpackError
impl Debug for UmfpackError
Source§impl Display for UmfpackError
impl Display for UmfpackError
impl Eq for UmfpackError
Source§impl Error for UmfpackError
impl Error for UmfpackError
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()
Source§impl PartialEq for UmfpackError
impl PartialEq for UmfpackError
impl StructuralPartialEq for UmfpackError
Auto Trait Implementations§
impl Freeze for UmfpackError
impl RefUnwindSafe for UmfpackError
impl Send for UmfpackError
impl Sync for UmfpackError
impl Unpin for UmfpackError
impl UnsafeUnpin for UmfpackError
impl UnwindSafe for UmfpackError
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T, U> Imply<T> for U
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more