I have created a matrix (matA) of 1000 rows and 1000 columns, and I want to calculate powers of this matrix. It works very well up to calculating the third power of the matrix. But when I ask to calculate its fourth power, it gives a warning message saying,
In matA * matA * matA * matA : NAs produced by integer overflow
How can I resolve this problem?