mirror of
https://github.com/rdkit/rdkit.git
synced 2026-06-04 21:54:27 +08:00
* DistViolationContribs optimization. * Update preFactor calculation to avoid numerical instability: use square of distance instead of squared distance directly, to prevent accumulated errors leading to CI test failures on Mac when d2 > c.ub2. * Optimize distance calculations by moving sqrt under condition branches to avoid unnecessary computations when squared distance bounds are not met.