mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
Enable evaluators by default
This commit is contained in:
11
Eigen/Core
11
Eigen/Core
@@ -12,10 +12,13 @@
|
|||||||
#define EIGEN_CORE_H
|
#define EIGEN_CORE_H
|
||||||
|
|
||||||
// EIGEN_TEST_EVALUATORS => EIGEN_ENABLE_EVALUATORS
|
// EIGEN_TEST_EVALUATORS => EIGEN_ENABLE_EVALUATORS
|
||||||
#ifdef EIGEN_TEST_EVALUATORS
|
#ifndef EIGEN_TEST_NO_EVALUATORS
|
||||||
#ifndef EIGEN_ENABLE_EVALUATORS
|
#ifndef EIGEN_TEST_EVALUATORS
|
||||||
#define EIGEN_ENABLE_EVALUATORS
|
#define EIGEN_TEST_EVALUATORS
|
||||||
#endif
|
#endif
|
||||||
|
#ifndef EIGEN_ENABLE_EVALUATORS
|
||||||
|
#define EIGEN_ENABLE_EVALUATORS
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// first thing Eigen does: stop the compiler from committing suicide
|
// first thing Eigen does: stop the compiler from committing suicide
|
||||||
|
|||||||
@@ -139,10 +139,10 @@ endif(TEST_LIB)
|
|||||||
set_property(GLOBAL PROPERTY EIGEN_CURRENT_SUBPROJECT "Official")
|
set_property(GLOBAL PROPERTY EIGEN_CURRENT_SUBPROJECT "Official")
|
||||||
add_custom_target(BuildOfficial)
|
add_custom_target(BuildOfficial)
|
||||||
|
|
||||||
option(EIGEN_TEST_EVALUATORS "Enable work in progress evaluators" OFF)
|
option(EIGEN_TEST_NO_EVALUATORS "Disable evaluators in unit tests" OFF)
|
||||||
if(EIGEN_TEST_EVALUATORS)
|
if(EIGEN_TEST_NO_EVALUATORS)
|
||||||
add_definitions("-DEIGEN_TEST_EVALUATORS=1")
|
add_definitions("-DEIGEN_TEST_NO_EVALUATORS=1")
|
||||||
endif(EIGEN_TEST_EVALUATORS)
|
endif(EIGEN_TEST_NO_EVALUATORS)
|
||||||
|
|
||||||
ei_add_test(meta)
|
ei_add_test(meta)
|
||||||
ei_add_test(sizeof)
|
ei_add_test(sizeof)
|
||||||
|
|||||||
@@ -7,6 +7,10 @@
|
|||||||
#undef EIGEN_TEST_EVALUATORS
|
#undef EIGEN_TEST_EVALUATORS
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef EIGEN_TEST_NO_EVALUATORS
|
||||||
|
#undef EIGEN_TEST_NO_EVALUATORS
|
||||||
|
#endif
|
||||||
|
|
||||||
#include "main.h"
|
#include "main.h"
|
||||||
|
|
||||||
namespace Eigen {
|
namespace Eigen {
|
||||||
|
|||||||
Reference in New Issue
Block a user