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

Class SortDecreasing

code/math/linear_program_io.cpp:90–94  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

88 }
89 else {
90 struct SortDecreasing {
91 bool operator()(const std::pair<int, double>& a, const std::pair<int, double>& b) {
92 return a.first > b.first;
93 }
94 };
95 std::sort(coeffs.begin(), coeffs.end(), SortDecreasing());
96 }
97

Callers 1

ordered_coefficientsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected