mirror of
https://github.com/storytold/gridcraft.git
synced 2026-10-24 10:46:50 -06:00
LINEST, LOGEST, TREND and GROWTH built k x k normal-equation matrices (plus two copies in sym_inverse, O(k^3)) with k taken straight from the known_xs shape, so one formula could allocate gigabytes and abort on open. More than 255 predictors is now #VALUE!, and more than 1e9 rows x k^2 multiply-adds is #NUM!, both checked before any allocation. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>