Matrix exponential function taken from complexplus package to reduce the number of spant dependencies.

matexp(x)

Arguments

x

a square complex matrix.

Value

the matrix exponential of x.