I want to get the power of an matrix. I mean lets say my matrix is A i wanna get the A ^k. I have though the simple algorithm that gives me O(n^3).I though I could do some kind of a change to modify it and be faster. I could use the algorithm that is used to get the power of a number that checks if the number is even or odd and then continue with the calculations but for matrixes..Has anyone to suggest something different . The language I am writing my code is C. Thank you
--