10#if !defined(GEOGRAPHICLIB_ACCUMULATOR_HPP)
11#define GEOGRAPHICLIB_ACCUMULATOR_HPP 1
39 template<
typename T = Math::real>
46 static T fastsum(T u, T v, T& t) {
103 static_assert(!std::numeric_limits<T>::is_integer,
104 "Accumulator type is not floating point");
165 using std::remainder;
166 _s = remainder(_s, y);
Header for GeographicLib::Constants class.
#define GEOGRAPHICLIB_EXPORT
#define GEOGRAPHICLIB_VOLATILE
Accumulator & operator=(T y)
bool operator>=(T y) const
Accumulator & operator-=(T y)
Accumulator & operator*=(T y)
bool operator!=(T y) const
bool operator>(T y) const
Accumulator & operator+=(T y)
bool operator<=(T y) const
bool operator<(T y) const
bool operator==(T y) const
Accumulator & remainder(T y)
Accumulator & operator*=(int n)
static T sum(T u, T v, T &t)
Namespace for GeographicLib.