10 #if !defined(GEOGRAPHICLIB_ACCUMULATOR_HPP)
11 #define GEOGRAPHICLIB_ACCUMULATOR_HPP 1
15 namespace GeographicLib {
39 template<
typename T = Math::real>
46 static inline T fastsum(T u, T v, T& t)
throw() {
48 volatile T vp = s - u;
52 void Add(T y)
throw() {
89 T Sum(T y)
const throw() {
103 "Accumulator type is not floating point");
172 #endif // GEOGRAPHICLIB_ACCUMULATOR_HPP
static T sum(T u, T v, T &t)
#define GEOGRAPHICLIB_EXPORT
bool operator==(T y) const
Accumulator & operator=(T y)
bool operator!=(T y) const
bool operator>=(T y) const
Accumulator & operator+=(T y)
Accumulator & operator-=(T y)
#define STATIC_ASSERT(cond, reason)
bool operator>(T y) const
Header for GeographicLib::Constants class.
bool operator<=(T y) const
bool operator<(T y) const
Accumulator & operator*=(int n)