Fixed Android build with Eigen.

This commit is contained in:
Andrey Kamaev 2012-06-16 14:52:46 +00:00
parent 000bf4af48
commit 33d9e2354a

View File

@ -48,10 +48,12 @@
#include <iostream> #include <iostream>
#if defined(HAVE_EIGEN) && EIGEN_WORLD_VERSION == 3 #if defined(HAVE_EIGEN) && EIGEN_WORLD_VERSION == 3
#include <Eigen/Core> # include <Eigen/Core>
#include <unsupported/Eigen/MatrixFunctions> # ifdef ANDROID
template <typename Scalar> Scalar log2(Scalar v) { using std::log; return log(v)/log(Scalar(2)); }
#include <Eigen/Dense> # endif
# include <unsupported/Eigen/MatrixFunctions>
# include <Eigen/Dense>
#endif #endif
#include <limits> #include <limits>