[eigen] custom scalar types

[ Thread Index | Date Index | More lists.tuxfamily.org/eigen Archives ]

Is there a new requirement to define an isfinite function for custom scalar types ?

The following program compiles with
g++ -Wall -std=c++11 \
	-I/home/bradbell/prefix/cppad/include \
	-isystem /home/bradbell/prefix/eigen/include \
	eigen.cpp -o eigen
and runs with eigen-3.2.9:

#include <cppad/example/cppad_eigen.hpp>
#include <Eigen/Eigenvalues>
int main() {
	typedef CppAD::AD<double> AD;
	typedef Eigen::Matrix<AD, Eigen::Dynamic, Eigen::Dynamic> matrix;
	matrix m(1,1);
	Eigen::EigenSolver<matrix> es(m,false);

When I try to compile it using eigen-3.3.3, I get the following error message:

.... snip ...
/eigen/include/Eigen/src/Core/MathFunctions.h:737:39: error: no matching function for call to
‘isfinite(const CppAD::AD<double>&)’
     return isfinite EIGEN_NOT_A_MACRO (x);

.... snip ...

Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/