mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-06-04 18:54:00 +08:00
-fix certain #includes
-fix CMakeLists, public headers weren't getting installed
This commit is contained in:
parent
4317fad869
commit
3eccfd1a78
@ -1,4 +1,4 @@
|
||||
FILE(GLOB Eigen_SRCS "*.h")
|
||||
SET(Eigen_SRCS Core CoreDeclarations LU Cholesky QR)
|
||||
|
||||
SET(INCLUDE_INSTALL_DIR
|
||||
"${CMAKE_INSTALL_PREFIX}/include/eigen2"
|
||||
|
@ -5,8 +5,8 @@
|
||||
|
||||
namespace Eigen {
|
||||
|
||||
#include "Eigen/src/Cholesky/Cholesky.h"
|
||||
#include "Eigen/src/Cholesky/CholeskyWithoutSquareRoot.h"
|
||||
#include "src/Cholesky/Cholesky.h"
|
||||
#include "src/Cholesky/CholeskyWithoutSquareRoot.h"
|
||||
|
||||
} // namespace Eigen
|
||||
|
||||
|
4
Eigen/LU
4
Eigen/LU
@ -5,8 +5,8 @@
|
||||
|
||||
namespace Eigen {
|
||||
|
||||
#include "Eigen/src/LU/Determinant.h"
|
||||
#include "Eigen/src/LU/Inverse.h"
|
||||
#include "src/LU/Determinant.h"
|
||||
#include "src/LU/Inverse.h"
|
||||
|
||||
} // namespace Eigen
|
||||
|
||||
|
4
Eigen/QR
4
Eigen/QR
@ -5,8 +5,8 @@
|
||||
|
||||
namespace Eigen {
|
||||
|
||||
#include "Eigen/src/QR/QR.h"
|
||||
#include "Eigen/src/QR/EigenSolver.h"
|
||||
#include "src/QR/QR.h"
|
||||
#include "src/QR/EigenSolver.h"
|
||||
|
||||
} // namespace Eigen
|
||||
|
||||
|
@ -46,10 +46,10 @@ inline int ei_log(int) { ei_assert(false); return 0; }
|
||||
inline int ei_sin(int) { ei_assert(false); return 0; }
|
||||
inline int ei_cos(int) { ei_assert(false); return 0; }
|
||||
|
||||
#if (!(EIGEN_GNUC_AT_LEAST(4,3)))
|
||||
inline int ei_pow(int x, int y) { return int(std::pow(double(x), y)); }
|
||||
#else
|
||||
#if EIGEN_GNUC_AT_LEAST(4,3)
|
||||
inline int ei_pow(int x, int y) { return std::pow(x, y); }
|
||||
#else
|
||||
inline int ei_pow(int x, int y) { return int(std::pow(double(x), y)); }
|
||||
#endif
|
||||
|
||||
template<> inline int ei_random(int a, int b)
|
||||
|
Loading…
x
Reference in New Issue
Block a user