MCPcopy Create free account
hub / github.com/LiangliangNan/PolyFit / SortIncreasing

Class SortIncreasing

code/math/linear_program_io.cpp:82–86  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

80 // it is possible to make the order an parameter when constructing SortObj, but this is a bit more efficient
81 if (increasing_order) {
82 struct SortIncreasing {
83 bool operator()(const std::pair<int, double>& a, const std::pair<int, double>& b) {
84 return a.first < b.first;
85 }
86 };
87 std::sort(coeffs.begin(), coeffs.end(), SortIncreasing());
88 }
89 else {

Callers 1

ordered_coefficientsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected