hyperlattice 0.6.0

A small Rust linear algebra library with hyperreal-backed scalar, vector, and matrix types.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//! Error and cancellation types shared by lattice operations.

use std::sync::Arc;
use std::sync::atomic::AtomicBool;

/// Shared cancellation signal used by abort-aware APIs.
///
/// The signal is attached to cloned [`hyperreal::Real`] values before
/// operations that may evaluate opaque computable reals.
pub type AbortSignal = Arc<AtomicBool>;

pub use hyperreal::Problem;

/// Result type used by fallible operations in this crate.
pub type BlasResult<T> = Result<T, Problem>;

/// Result type used by APIs that reject unknown-zero conditions.
pub type CheckedBlasResult<T> = BlasResult<T>;