I am trying to compute the absolute eigenvalues of a square non-symmetric matrix using the Eigen::EigenSolver function:
I seem to have read a similar question on the GitHub issues page posted a long time ago, but haven’t seen any solutions to this (https://github.com/kaskr/adcomp/issues/144).
The problem I think appears to be casting from CppAD::AD<double> to double. I’ve managed to make this work using RTMB, but would prefer to not use it as I am already importing TMB in my package. I also took a look at the tmbutils/matexp.hpp code which also makes use of EigenSolver, but couldn’t figure out exactly how to adjust this for my purpose.
Would appreciate any suggestions.
Thanks,
Alexios