Computes the matrix raised to the given power.
Namespace:
Meta.Numerics.Matrices
Assembly:
Meta.Numerics (in Meta.Numerics.dll) Version: 4.1.4
Syntax public SquareMatrix Power(
int n
)
Public Function Power (
n As Integer
) As SquareMatrix
public:
SquareMatrix^ Power(
int n
)
member Power :
n : int -> SquareMatrix
Parameters
- n
- Type: SystemInt32
The power to which to raise the matrix, which must be positive.
Return Value
Type:
SquareMatrixThe matrix A
n.
Exceptions 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