Changed power.Compute to write the result into a given matrix