Skip to content
Prev 313467 / 398502 Next

Matrix multiplication

On Dec 12, 2012, at 08:19 , annek wrote:

            
Your code is not reproducible, but I notice that at the end of your loop, T==Ttest, so you are squaring a matrix on every iteration. I.e., you are generating T^2, T^4, T^8, so at i=20 you are computing T^1048576 or so. If you go beyond that, I suppose that even a tiny roundoff will cause an eigenvalue slightly bigger than 1 to blow things up.