mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
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:
committed by
Antonio Sánchez
parent
ce4af0b38f
commit
5f9cfb2529
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user