diff options
author | Gael Guennebaud <g.gael@free.fr> | 2016-05-26 17:27:14 +0200 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2016-05-26 17:27:14 +0200 |
commit | f253e192966fb07a58a975fd442de00f78784d58 (patch) | |
tree | 8fdf30925dc8c9fb99c5f4ff41b5a81ccb7a10fc /Eigen/src/Core/ConditionEstimator.h | |
parent | 2ee306e44ac9d97c2988f3b7475b5d28209e713e (diff) |
Disable some long to float conversion warnings
Diffstat (limited to 'Eigen/src/Core/ConditionEstimator.h')
-rw-r--r-- | Eigen/src/Core/ConditionEstimator.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Eigen/src/Core/ConditionEstimator.h b/Eigen/src/Core/ConditionEstimator.h index 68c5e918e..2d6c6c5b5 100644 --- a/Eigen/src/Core/ConditionEstimator.h +++ b/Eigen/src/Core/ConditionEstimator.h @@ -94,7 +94,15 @@ typename Decomposition::RealScalar rcond_invmatrix_L1_norm_estimate(const Decomp if (n == 0) return 0; + // Disable Index to float conversion warning +#ifdef __INTEL_COMPILER + #pragma warning push + #pragma warning ( disable : 2259 ) +#endif Vector v = dec.solve(Vector::Ones(n) / Scalar(n)); +#ifdef __INTEL_COMPILER + #pragma warning pop +#endif // lower_bound is a lower bound on // ||inv(matrix)||_1 = sup_v ||inv(matrix) v||_1 / ||v||_1 |