diff options
author | 2015-10-28 13:39:02 +0100 | |
---|---|---|
committer | 2015-10-28 13:39:02 +0100 | |
commit | 85313048581d22901c7940a46bd41b19e88ff47c (patch) | |
tree | 76853fb284423331dd4254b742c148f6cc418d11 /Eigen/src/Core/util/StaticAssert.h | |
parent | 1f11dd6cedc223f92f9ce99a22080dd267fcb488 (diff) |
Simplify cost computations based on HugeCost being smaller that unrolling limit
Diffstat (limited to 'Eigen/src/Core/util/StaticAssert.h')
-rw-r--r-- | Eigen/src/Core/util/StaticAssert.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Eigen/src/Core/util/StaticAssert.h b/Eigen/src/Core/util/StaticAssert.h index 77da6cc5f..9d7302d81 100644 --- a/Eigen/src/Core/util/StaticAssert.h +++ b/Eigen/src/Core/util/StaticAssert.h @@ -204,6 +204,6 @@ // Check that a cost value is positive, and that is stay within a reasonable range // TODO this check could be enabled for internal debugging only #define EIGEN_INTERNAL_CHECK_COST_VALUE(C) \ - EIGEN_STATIC_ASSERT((C)>=0 && (C)<2*HugeCost*HugeCost, EIGEN_INTERNAL_ERROR_PLEASE_FILE_A_BUG_REPORT__INVALID_COST_VALUE); + EIGEN_STATIC_ASSERT((C)>=0 && (C)<=HugeCost*HugeCost, EIGEN_INTERNAL_ERROR_PLEASE_FILE_A_BUG_REPORT__INVALID_COST_VALUE); #endif // EIGEN_STATIC_ASSERT_H |