MCPcopy Create free account
hub / github.com/Tiiny-AI/PowerInfer / almost_equal

Function almost_equal

smallthinker/tests/test-opt.cpp:14–16  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12#include <vector>
13
14static bool almost_equal(const double a, const double b, const double atol) {
15 return fabs(a - b) < atol;
16}
17
18constexpr int64_t ne_datapoint = 2;
19constexpr int64_t ne_label = 1;

Callers 4

test_forward_backwardFunction · 0.85
test_idata_splitFunction · 0.85
test_regressionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected