14 #ifndef OR_TOOLS_BASE_ACCURATE_SUM_H_ 15 #define OR_TOOLS_BASE_ACCURATE_SUM_H_ 22 template <
typename FpNumber>
31 const FpNumber new_sum = sum_ + error_sum_;
32 error_sum_ += sum_ - new_sum;
37 FpNumber
Value()
const {
return sum_; }
46 #endif // OR_TOOLS_BASE_ACCURATE_SUM_H_ void Add(const FpNumber &value)
Collection of objects used to extend the Constraint Solver library.