mirror of
https://github.com/storytold/gridcraft.git
synced 2026-11-15 14:52:26 +00:00
CodeRabbit pointed out that the drop test used the centred column length, so a constant column such as [0.1; 3] (centred to about -1.4e-17) was scaled to a unit vector and kept, giving a meaningless coefficient and wrong df. A centred column shorter than 1e-12 of its uncentred length is now treated as collinear with the intercept. The suggested 1e-6 threshold was not used: it would also drop columns that sit far from zero, such as 1e9 + i. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>