n,
n)
Returns:
- eA : ndarray
The resulting matrix exponential with the same shape of A
Notes
Implements the algorithm given in [1], which is essentially a Pade
approximation with a variable order that is decided based on the array
data.
For input with size n, the memory usage is in the worst case in the
order of 8*(n**2). If the input data is not of single and double
precision of real and complex dtypes, it is copied to a new array.
For cases n >= 400, the exact 1-norm computation cost, breaks even with
1-norm estimation and from that point on the estimation scheme given in
[2] is used to decide on the approximation order.
References
Examples
j
*
sinm
(
a
)
array([[ 0.42645930+1.89217551j, -2.13721484-0.97811252j],
[ 1.06860742+0.48905626j, -1.71075555+0.91406299j]])