20 for (
int i = 0; i < input.size(); i++) {
36 sort(to_sort.begin(), to_sort.end());
41 sort(to_sort.begin(), to_sort.end());
48 std::vector<double> vec_to_sort;
49 std::map<int, double>::const_iterator it;
50 for (it = to_sort.begin(); it != to_sort.end(); ++it) {
51 vec_to_sort.push_back((*it).second);
static void sort_inplace_ascending(std::vector< double > &to_sort)
Identical to sort_ascending(std::vector<double>) except it modifies the sorts the vector in-place mod...
static double KahanSum(std::vector< double > input)
sums the materials in the vector in an intelligent way, to avoid floating point issues.
static std::vector< double > sort_ascending(std::vector< double > to_sort)
orders the vector from smallest value to largest value.
Declares the CycArithmetic class, which holds arithmetic algorithms.
taken directly from OsiSolverInterface.cpp on 2/17/14 from https://projects.coin-or....