SquareMatrixPower Method

Computes the matrix raised to the given power.

Definition

Namespace: Meta.Numerics.Matrices
Assembly: Meta.Numerics (in Meta.Numerics.dll) Version: 4.2.0+6d77d64445f7d5d91b12e331399c4362ecb25333
C#
public SquareMatrix Power(
	int n
)

Parameters

n  Int32
The power to which to raise the matrix, which must be positive.

Return Value

SquareMatrix
The matrix An.

Remarks

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.

Exceptions

See Also