scalar power of a matrix
matrix
x
Matrix power(Matrix matrix, int x) { return matrix.performFunction((a) => pow(a, x)); }