expm module¶
- itrails.expm.expm(A)[source]¶
Calculates matrix exponential of a square matrix A. Adapted from https://github.com/michael-hartmann/expm/blob/master/python/expm.py Algorithm 10.20 from unctions of Matrices: Theory and Computation, Nicholas J. Higham, 2008
- Parameters:
A (np.array) – square matrix
- Returns:
matrix exponential of A
- Return type:
np.array