Skip to main content

ACCURACY_CUTOFF_FACTOR

Constant ACCURACY_CUTOFF_FACTOR 

Source
pub const ACCURACY_CUTOFF_FACTOR: f64 = 1e-10; // 1.0E-10f64
Expand description

Cutoff of SVEOptions::cutoff_from_epsilon relative to the required accuracy ε

A basis of singular functions accurate to ε keeps the singular values ≥ ε·s₀, plus one more to estimate its error; resolving the spectrum further down to 2·ε_work dominates the cost of the SVE in Df64. The cutoff is also the stopping tolerance of the ACA in the block SVDs, whose stopping test can underestimate the residual, so the factor leaves a margin: with 10⁻⁶·ε, the singular values such a basis uses deviated from the full spectrum by up to 2·10⁻⁴ relative, measured on the kernel e^{-Λy(x+1)/2} / (1 + e^{-Λy}) on [-1, 1]² with Λ = 10⁶, ε = 10⁻¹²; at 10⁻¹⁰·ε they agree to ≲ 4·10⁻¹¹ relative for Λ ≤ 10⁶, ε = 10⁻¹⁰…10⁻¹⁵.