public SquareMatrix Power(
int n
)
Public Function Power (
n As Integer
) As SquareMatrix
public:
SquareMatrix^ Power(
int n
)
member Power :
n : int -> SquareMatrix
This method uses exponentiation-by-squaring, so typically only of order log(n) matrix multiplications are required. This improves not only the speed with which the matrix power is computed, but also the accuracy.
ArgumentOutOfRangeException | n is negative. |