mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-06-20 22:52:51 +08:00
Fix order of "static inline".
This commit is contained in:
parent
ee62f168e6
commit
18f6e47815
@ -190,25 +190,25 @@ struct reducer_traits<MeanReducer<T>, Device> {
|
|||||||
|
|
||||||
template <typename T, bool IsMax = true, bool IsInteger = true>
|
template <typename T, bool IsMax = true, bool IsInteger = true>
|
||||||
struct MinMaxBottomValue {
|
struct MinMaxBottomValue {
|
||||||
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE static T bottom_value() {
|
EIGEN_DEVICE_FUNC static EIGEN_STRONG_INLINE T bottom_value() {
|
||||||
return Eigen::NumTraits<T>::lowest();
|
return Eigen::NumTraits<T>::lowest();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
template <typename T>
|
template <typename T>
|
||||||
struct MinMaxBottomValue<T, true, false> {
|
struct MinMaxBottomValue<T, true, false> {
|
||||||
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE static T bottom_value() {
|
EIGEN_DEVICE_FUNC static EIGEN_STRONG_INLINE T bottom_value() {
|
||||||
return -Eigen::NumTraits<T>::infinity();
|
return -Eigen::NumTraits<T>::infinity();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
template <typename T>
|
template <typename T>
|
||||||
struct MinMaxBottomValue<T, false, true> {
|
struct MinMaxBottomValue<T, false, true> {
|
||||||
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE static T bottom_value() {
|
EIGEN_DEVICE_FUNC static EIGEN_STRONG_INLINE T bottom_value() {
|
||||||
return Eigen::NumTraits<T>::highest();
|
return Eigen::NumTraits<T>::highest();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
template <typename T>
|
template <typename T>
|
||||||
struct MinMaxBottomValue<T, false, false> {
|
struct MinMaxBottomValue<T, false, false> {
|
||||||
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE static T bottom_value() {
|
EIGEN_DEVICE_FUNC static EIGEN_STRONG_INLINE T bottom_value() {
|
||||||
return Eigen::NumTraits<T>::infinity();
|
return Eigen::NumTraits<T>::infinity();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user