sympy/sympy — pull request #1288 by pernici (2012-05-11 13:44:45+00:00)
Title: Faster power of a matrix

A multiplication is saved computing `M**n`, which becomes typically
roughly `(1 + 1/log2(n))` faster for matrices of `order >= 10`;
for smaller orders there is still a speedup, but smaller.