20 for (
int i = 0; i < input.size(); i++) {
38 sort(to_sort.begin(), to_sort.end());
43 sort(to_sort.begin(), to_sort.end());
49 std::map<int, double> to_sort) {
50 std::vector<double> vec_to_sort;
51 std::map<int, double>::const_iterator it;
52 for (it = to_sort.begin(); it != to_sort.end(); ++it) {
53 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....