diff options
author | 2009-03-06 16:52:43 +0000 | |
---|---|---|
committer | 2009-03-06 16:52:43 +0000 | |
commit | 6f95270ede190d136ff64161f13ac4e663cbbfc9 (patch) | |
tree | c5b9d57e3db9d55eb31fa0228d34812ec27cd429 /Eigen | |
parent | 2c78ca62a64ffca0095de0347a59b1154af24f7b (diff) |
significantly reduce the default stack allocation limit which was much
too high
Diffstat (limited to 'Eigen')
-rw-r--r-- | Eigen/src/Core/util/Macros.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Eigen/src/Core/util/Macros.h b/Eigen/src/Core/util/Macros.h index bc444b6b9..fad9a016e 100644 --- a/Eigen/src/Core/util/Macros.h +++ b/Eigen/src/Core/util/Macros.h @@ -178,7 +178,7 @@ using Eigen::ei_cos; #define EIGEN_RESTRICT __restrict #ifndef EIGEN_STACK_ALLOCATION_LIMIT -#define EIGEN_STACK_ALLOCATION_LIMIT 16000000 +#define EIGEN_STACK_ALLOCATION_LIMIT 1000000 #endif #ifndef EIGEN_DEFAULT_IO_FORMAT @@ -188,9 +188,14 @@ using Eigen::ei_cos; // just an empty macro ! #define EIGEN_EMPTY +// concatenate two tokens #define EIGEN_CAT2(a,b) a ## b #define EIGEN_CAT(a,b) EIGEN_CAT2(a,b) +// convert a token to a string +#define EIGEN_MAKESTRING2(a) #a +#define EIGEN_MAKESTRING(a) EIGEN_MAKESTRING2(a) + // format used in Eigen's documentation // needed to define it here as escaping characters in CMake add_definition's argument seems very problematic. #define EIGEN_DOCS_IO_FORMAT IOFormat(3, AlignCols, " ", "\n", "", "") |