This routine computes exp(t*x), where t
in a single numeric value,
and x is a square matrix and exp refers to the matrix exponential.
Formally, the matrix exponential is given by the power series:
\(expm(x) = x/1! + x^2/2! + x^3/3! + \dots\)
where the powers on the matrix correspond to matrix-matrix multiplications.
expm()
directly computes the matrix exponential of a dense
matrix. The implementation uses an order 6 Pade' approximation with a
scaling-and-squaring technique.