diff options
author | Gael Guennebaud <g.gael@free.fr> | 2011-01-27 17:36:58 +0100 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2011-01-27 17:36:58 +0100 |
commit | 32124bc64ace50f40c7e2f79b39dd14e284fb9a3 (patch) | |
tree | 05025ee555221c885043aad2c0466fc1474828e0 | |
parent | 955e0962774188847c8f2883f7006efa9723571d (diff) |
EIGEN_YES_I_KNOW_SPARSE_MODULE_IS_NOT_STABLE_YET must be defined to use Eigen/Sparse
-rw-r--r-- | Eigen/Sparse | 4 | ||||
-rw-r--r-- | test/sparse.h | 2 |
2 files changed, 6 insertions, 0 deletions
diff --git a/Eigen/Sparse b/Eigen/Sparse index ce6ef2f3c..bdc45610d 100644 --- a/Eigen/Sparse +++ b/Eigen/Sparse @@ -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 diff --git a/test/sparse.h b/test/sparse.h index 1489f2a0e..b343427e5 100644 --- a/test/sparse.h +++ b/test/sparse.h @@ -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 |