Click or drag to resize

SquareMatrixPower Method

Computes the matrix raised to the given power.

Namespace:  Meta.Numerics.Matrices
Assembly:  Meta.Numerics (in Meta.Numerics.dll) Version: 4.0.5.0 (4.0.5.0)
Syntax
public SquareMatrix Power(
	int n
)

Parameters

n
Type: SystemInt32
The power to which to raise the matrix, which must be positive.

Return Value

Type: SquareMatrix
The matrix An.
Exceptions
ExceptionCondition
ArgumentOutOfRangeExceptionn is negative.
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.

See Also