is computed using a Padé approximant and the scaling and squaring method described in
Higham (2005) and
Higham (2008).
If
has a full set of eigenvectors
then
can be factorized as
where
is the diagonal matrix whose diagonal elements,
, are the eigenvalues of
.
is then given by
where
is the diagonal matrix whose
th diagonal element is
.
Higham N J (2005) The scaling and squaring method for the matrix exponential revisited SIAM J. Matrix Anal. Appl. 26(4) 1179–1193
Moler C B and Van Loan C F (2003) Nineteen dubious ways to compute the exponential of a matrix, twenty-five years later SIAM Rev. 45 3–49
- NE_ALLOC_FAIL
Dynamic memory allocation failed.
- NE_BAD_PARAM
On entry, argument had an illegal value.
- NE_INT
On entry, .
Constraint: .
On entry, .
Constraint: .
- NE_INT_2
On entry, and .
Constraint: .
- NE_INTERNAL_ERROR
An internal error has occurred in this function. Check the function call and any array sizes. If the call is correct then please contact
NAG for assistance.
An internal error occurred when computing the Padé approximant.
Please contact
NAG.
- NE_SINGULAR
Linear equations are nearly singular, Padé approximant has no accuracy.
This error should not occur, check input arguments.
Linear equations are singular, Padé approximant cannot be computed.
This error should not occur, check input arguments.
- NW_SOME_PRECISION_LOSS
Warning: matrix exponential not computed to full working precision.
For a normal matrix
(for which
) the computed matrix,
, is guaranteed to be close to the exact matrix, that is, the method is forward stable. No such guarantee can be given for non-normal matrices. See Section 10.3 of
Higham (2008) for details and further discussion.
For discussion of the condition of the matrix exponential see Section 10.2 of
Higham (2008).
The cost of the algorithm is
; see Algorithm 10.20 in
Higham (2008).
As well as the excellent book cited above, the classic reference for the computation of the matrix exponential is
Moler and Van Loan (2003).
This example find the matrix exponential of the matrix