MCPcopy Create free account
hub / github.com/davisking/dlib / basic_factor_value

Method basic_factor_value

dlib/test/find_max_factor_graph_nmplp.cpp:213–226  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

211 private:
212
213 double basic_factor_value (
214 unsigned long n1,
215 unsigned long n2,
216 unsigned long s1,
217 unsigned long s2
218 ) const
219 {
220 if (n1 > n2)
221 {
222 swap(n1,n2);
223 swap(s1,s2);
224 }
225 return weights[make_unordered_pair(n1,n2)][make_pair(s1,s2)];
226 }
227
228 };
229

Callers

nothing calls this directly

Calls 2

make_unordered_pairFunction · 0.85
swapFunction · 0.70

Tested by

no test coverage detected