0
0
mirror of https://gitlab.com/libeigen/eigen.git synced 2026-01-18 17:31:19 +01:00

Fix a gcc7 warning about bool * bool in abs2 default implementation.

(grafted from 561f777075
)
This commit is contained in:
Gael Guennebaud
2017-06-27 12:05:17 +02:00
parent 6870a39feb
commit 6c4d57dc9e

View File

@@ -916,6 +916,9 @@ inline EIGEN_MATHFUNC_RETVAL(abs2, Scalar) abs2(const Scalar& x)
return EIGEN_MATHFUNC_IMPL(abs2, Scalar)::run(x);
}
EIGEN_DEVICE_FUNC
inline bool abs2(bool x) { return x; }
template<typename Scalar>
EIGEN_DEVICE_FUNC
inline EIGEN_MATHFUNC_RETVAL(norm1, Scalar) norm1(const Scalar& x)