MCPcopy Create free account
hub / github.com/QuEST-Kit/QuEST / getAbsDif

Function getAbsDif

tests/utils/compare.cpp:59–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

57
58
59qreal getAbsDif(qcomp a, qcomp b) {
60
61 return std::abs(a - b);
62}
63
64qreal getRelDif(qcomp a, qcomp b) {
65

Callers 5

getRelDifFunction · 0.85
doScalarsAgreeFunction · 0.85
REPORT_AMP_AND_FAILFunction · 0.85
REPORT_SCALAR_AND_FAILFunction · 0.85
REPORT_ELEM_AND_FAILFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected