Looking to use the ForwardDiff package on code that uses Julias’ matrix exponential, expm, but getting method errors. I guess expm uses some non-native Julia code. Does anyone have any insight here, or a workaround? Any plans to include derivatives of expm in future ForwardDiff releases?
Just asked myself the same question. From what I understand:
- ForwardDiff doesn’t support the base version of matrix exponential (support for `Base.expm` (need advice implementing) · Issue #174 · JuliaDiff/ForwardDiff.jl · GitHub)
- there is an alternative implementation in GitHub - sethaxen/ExponentialAction.jl: Compute the action of the matrix exponential