mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-07-14 00:51:52 +08:00
fix linking issue
(grafted from 7a9089c33cdb7f9d6cea0380ca75a44969c3ef78 )
This commit is contained in:
parent
1c4fdad7bd
commit
906a98fe39
@ -487,22 +487,22 @@ T div_ceil(const T &a, const T &b)
|
|||||||
|
|
||||||
// The aim of the following functions is to bypass -Wfloat-equal warnings
|
// The aim of the following functions is to bypass -Wfloat-equal warnings
|
||||||
// when we really want a strict equality comparison on floating points.
|
// when we really want a strict equality comparison on floating points.
|
||||||
template<typename X, typename Y>
|
template<typename X, typename Y> EIGEN_STRONG_INLINE
|
||||||
bool equal_strict(const X& x,const Y& y) { return x == y; }
|
bool equal_strict(const X& x,const Y& y) { return x == y; }
|
||||||
|
|
||||||
template<>
|
template<> EIGEN_STRONG_INLINE
|
||||||
bool equal_strict(const float& x,const float& y) { return std::equal_to<float>()(x,y); }
|
bool equal_strict(const float& x,const float& y) { return std::equal_to<float>()(x,y); }
|
||||||
|
|
||||||
template<>
|
template<> EIGEN_STRONG_INLINE
|
||||||
bool equal_strict(const double& x,const double& y) { return std::equal_to<double>()(x,y); }
|
bool equal_strict(const double& x,const double& y) { return std::equal_to<double>()(x,y); }
|
||||||
|
|
||||||
template<typename X, typename Y>
|
template<typename X, typename Y> EIGEN_STRONG_INLINE
|
||||||
bool not_equal_strict(const X& x,const Y& y) { return x != y; }
|
bool not_equal_strict(const X& x,const Y& y) { return x != y; }
|
||||||
|
|
||||||
template<>
|
template<> EIGEN_STRONG_INLINE
|
||||||
bool not_equal_strict(const float& x,const float& y) { return std::not_equal_to<float>()(x,y); }
|
bool not_equal_strict(const float& x,const float& y) { return std::not_equal_to<float>()(x,y); }
|
||||||
|
|
||||||
template<>
|
template<> EIGEN_STRONG_INLINE
|
||||||
bool not_equal_strict(const double& x,const double& y) { return std::not_equal_to<double>()(x,y); }
|
bool not_equal_strict(const double& x,const double& y) { return std::not_equal_to<double>()(x,y); }
|
||||||
|
|
||||||
} // end namespace numext
|
} // end namespace numext
|
||||||
|
Loading…
x
Reference in New Issue
Block a user