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/Redux.h | |
parent | 2ee306e44ac9d97c2988f3b7475b5d28209e713e (diff) |
Disable some long to float conversion warnings
Diffstat (limited to 'Eigen/src/Core/Redux.h')
-rw-r--r-- | Eigen/src/Core/Redux.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Eigen/src/Core/Redux.h b/Eigen/src/Core/Redux.h index 582ba5c43..3a47edf79 100644 --- a/Eigen/src/Core/Redux.h +++ b/Eigen/src/Core/Redux.h @@ -459,7 +459,14 @@ template<typename Derived> EIGEN_STRONG_INLINE typename internal::traits<Derived>::Scalar DenseBase<Derived>::mean() const { +#ifdef __INTEL_COMPILER + #pragma warning push + #pragma warning ( disable : 2259 ) +#endif return Scalar(derived().redux(Eigen::internal::scalar_sum_op<Scalar>())) / Scalar(this->size()); +#ifdef __INTEL_COMPILER + #pragma warning pop +#endif } /** \returns the product of all coefficients of *this |