EIGEN_YES_I_KNOW_SPARSE_MODULE_IS_NOT_STABLE_YET must be defined to use Eigen/Sparse

This commit is contained in:
Gael Guennebaud 2011-01-27 17:36:58 +01:00
parent 955e096277
commit 32124bc64a
2 changed files with 6 additions and 0 deletions

View File

@ -11,6 +11,10 @@
#include <cstring>
#include <algorithm>
#ifndef EIGEN_YES_I_KNOW_SPARSE_MODULE_IS_NOT_STABLE_YET
#error The sparse module API is not stable yet. To use it anyway, please define the EIGEN_YES_I_KNOW_SPARSE_MODULE_IS_NOT_STABLE_YET preprocessor token.
#endif
namespace Eigen {
/** \defgroup Sparse_Module Sparse module

View File

@ -24,6 +24,8 @@
#ifndef EIGEN_TESTSPARSE_H
#define EIGEN_YES_I_KNOW_SPARSE_MODULE_IS_NOT_STABLE_YET
#include "main.h"
#if EIGEN_GNUC_AT_LEAST(4,0) && !defined __ICC