Lines Matching defs:FloatType
1886 // FloatType being either float or double.
1887 template <typename FloatType>
1896 FloatingEqMatcher(FloatType expected, bool nan_eq_nan) :
1903 FloatingEqMatcher(FloatType expected, bool nan_eq_nan,
1904 FloatType max_abs_error)
1916 Impl(FloatType expected, bool nan_eq_nan, FloatType max_abs_error)
1923 const FloatingPoint<FloatType> actual(value), expected(expected_);
1942 const FloatType diff = value - expected_;
1961 ::std::numeric_limits<FloatType>::digits10 + 2);
1962 if (FloatingPoint<FloatType>(expected_).is_nan()) {
1980 ::std::numeric_limits<FloatType>::digits10 + 2);
1981 if (FloatingPoint<FloatType>(expected_).is_nan()) {
2002 const FloatType expected_;
2005 const FloatType max_abs_error_;
2016 operator Matcher<FloatType>() const {
2018 new Impl<FloatType>(expected_, nan_eq_nan_, max_abs_error_));
2021 operator Matcher<const FloatType&>() const {
2023 new Impl<const FloatType&>(expected_, nan_eq_nan_, max_abs_error_));
2026 operator Matcher<FloatType&>() const {
2028 new Impl<FloatType&>(expected_, nan_eq_nan_, max_abs_error_));
2032 const FloatType expected_;
2035 const FloatType max_abs_error_;