General NxN matrix multiplication

Dear Benoit,

Thank you for your response.

I am indeed referring to M * M.

It will be sufficient to know that for my application, I do need to be able to compute powers of a matrix, and any arbitrary although they will be always less than N-1, N is are the dimensions of the square matrix N x N.

I am myself thinking about some mathematical tricks by which I can compute A^2 , but have not reached anywhere as of yet.

danish