pub const DEFAULT_SINGULAR_TOL: Tolerance;Expand description
Default absolute threshold used for singularity/degeneracy detection.
This is intentionally conservative for geometric predicates and small systems.
Conceptually, this is an absolute bound for deciding when a scalar should be treated as “numerically zero” (e.g. LU pivots, LDLT diagonal entries).
§Examples
use la_stack::prelude::*;
let lu = Matrix::<2>::identity().lu(DEFAULT_SINGULAR_TOL)?;
assert_eq!(lu.det()?, 1.0);