pub enum SparseError {
Cuda(CudaError),
Blas(BlasError),
PtxGeneration(String),
InvalidFormat(String),
DimensionMismatch(String),
ZeroNnz,
SingularMatrix,
ConvergenceFailure(String),
InternalError(String),
InvalidArgument(String),
Io(Error),
}Expand description
Sparse-specific error type.
Every fallible sparse operation returns SparseResult<T> which uses this
enum as its error variant.
Variants§
Cuda(CudaError)
A CUDA driver call failed.
Blas(BlasError)
A BLAS operation failed.
PtxGeneration(String)
PTX kernel generation failed.
InvalidFormat(String)
The sparse matrix format is invalid (e.g. mismatched array lengths).
DimensionMismatch(String)
Matrix dimensions are incompatible for the requested operation.
ZeroNnz
The number of non-zeros is zero, which is invalid for this operation.
SingularMatrix
The matrix is singular and cannot be factored or solved.
ConvergenceFailure(String)
An iterative algorithm failed to converge within the iteration limit.
InternalError(String)
An internal logic error (should not happen in correct code).
InvalidArgument(String)
A function argument is invalid.
Io(Error)
An I/O operation failed (e.g. PTX cache).
Trait Implementations§
Source§impl Debug for SparseError
impl Debug for SparseError
Source§impl Display for SparseError
impl Display for SparseError
Source§impl Error for SparseError
impl Error for SparseError
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<BlasError> for SparseError
impl From<BlasError> for SparseError
Source§impl From<CudaError> for SparseError
impl From<CudaError> for SparseError
Source§impl From<Error> for SparseError
impl From<Error> for SparseError
Source§impl From<PtxGenError> for SparseError
impl From<PtxGenError> for SparseError
Source§fn from(err: PtxGenError) -> Self
fn from(err: PtxGenError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for SparseError
impl !UnwindSafe for SparseError
impl Freeze for SparseError
impl Send for SparseError
impl Sync for SparseError
impl Unpin for SparseError
impl UnsafeUnpin for SparseError
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