Compute powers of matrix.

MatrixPower(A, n)

Arguments

A

A matrix.

n

Number of powers.

Value

Returns the powered matrix.