Skip to main content

Module error

Module error 

Source
Expand description

Domain errors owned by the linear-algebra extension.

Numerical failures and unsupported dtypes remain linalg-owned values until they cross into the tensor/runtime boundary. That boundary wraps the value as a typed extension source, so callers can classify the failure without losing the operation-specific payload.

§Examples

use tenferro_linalg::Error;
use tenferro_tensor::{ErrorKind, DType};

let error = Error::UnsupportedDType {
    op: "svd",
    dtype: DType::I32,
};
assert_eq!(error.kind(), ErrorKind::Unsupported);

Enums§

Error
Failures owned by a linalg algorithm or provider boundary.

Type Aliases§

Result
Result type for linalg-owned domain operations.