SPECTRAL_SWITCH_LOSS

Constant SPECTRAL_SWITCH_LOSS 

Source
pub(super) const SPECTRAL_SWITCH_LOSS: f64 = 1e-12;
Expand description

Relative rounding error, on the scale of max(|S|, 1), from which a component of a 1D spherical Ewald sum is taken from its spectral series instead, if that bounds it more tightly. Derivatives count on the scale |dS| + max(|S|, 1) s with s = |k| for length derivatives and 1 / |k| for inverse-length ones.