I’m trying to invert a large matrix (1001 by 1001) to perform Ridge Regression in Julia. I’m running into this “Stack overflow Error:”, I’ve recreated the problem with simpler code (not my Ridge Regression code, which is much messier) to illustrate what I’m dealing with. I’m using Julia in a Jupyter Notebook if that is of any concern. Could someone help me invert a large matrix or solve Ax=b for large A? Thank you!
(in this example I show that even a 100 by 100 matrix triggers this response, but 50 by 50 works)