MCPcopy Create free account
hub / github.com/AnswerDotAI/gpu.cpp / approximatelyEqual

Function approximatelyEqual

numeric_types/half.cpp:20–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18#define COLOR_GREEN "\033[32m"
19
20int approximatelyEqual(float a, float b, float epsilon) {
21 return fabsf(a - b) <= epsilon;
22}
23
24void printResult(bool passed, const char *message, float input, float output) {
25 if (passed) {

Callers 2

testRoundTripFunction · 0.85
testSpecialCasesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected