Skip to content

expm

linear-algebra · scripts/linear-algebra/expm.m

: e = expm (A)

Matrix exponential of the square matrix A.

The exponential is computed by scaling and squaring with a diagonal Pade approximant whose degree is chosen from the 1-norm of A. Matrices containing NaN or Inf give a matrix of NaN; diagonal matrices are handled entry by entry.