in reply to Re^2: Multiplying matrices
in thread Multiplying matrices

I believe the perfect solution is in PDL::LinearAlgebra::Trans, specifically the mpow function: raise a matrix to a power.