diff options
author | Antonio Sanchez <cantonios@google.com> | 2021-02-19 14:17:10 -0800 |
---|---|---|
committer | Antonio Sánchez <cantonios@google.com> | 2021-02-19 22:26:56 +0000 |
commit | 5f9cfb25294289730a78a2a3dcfbce3f36252422 (patch) | |
tree | baccc94dac9f28324f89a51da6d91a0a13e6e07f /unsupported/Eigen | |
parent | ce4af0b38f5b71c327689f8bbb37e3a0da3b8927 (diff) |
Add missing adolc isinf/isnan.
Also modified cmake/FindAdolc.cmake to eliminate warnings, and added
search paths to match install layout.
Fixed: #2157
Diffstat (limited to 'unsupported/Eigen')
-rw-r--r-- | unsupported/Eigen/AdolcForward | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/unsupported/Eigen/AdolcForward b/unsupported/Eigen/AdolcForward index 9b8d3cd1a..56caeaebf 100644 --- a/unsupported/Eigen/AdolcForward +++ b/unsupported/Eigen/AdolcForward @@ -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 { |