Disable some long to float conversion warnings

This commit is contained in:
Gael Guennebaud
2016-05-26 17:27:14 +02:00
parent 2ee306e44a
commit f253e19296
2 changed files with 15 additions and 0 deletions

View File

@@ -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