Add missing adolc isinf/isnan.

Also modified cmake/FindAdolc.cmake to eliminate warnings, and added
search paths to match install layout.

Fixed: #2157
This commit is contained in:
Antonio Sanchez
2021-02-19 14:17:10 -08:00
committed by Antonio Sánchez
parent ce4af0b38f
commit 5f9cfb2529
3 changed files with 11 additions and 8 deletions

View File

@@ -74,6 +74,9 @@ inline adouble imag(const adouble&) { return 0.; }
inline adouble abs(const adouble& x) { return fabs(x); }
inline adouble abs2(const adouble& x) { return x*x; }
inline bool (isinf)(const adouble& x) { return (Eigen::numext::isinf)(x.getValue()); }
inline bool (isnan)(const adouble& x) { return (Eigen::numext::isnan)(x.getValue()); }
}
namespace Eigen {