MCPcopy Create free account
hub / github.com/PABannier/sam3.cpp / print_result

Function print_result

tests/test_debug_encoder.cpp:54–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52}
53
54static void print_result(const char* name, const compare_result& r, float atol) {
55 const char* status = (r.max_diff < atol) ? "[PASS]" : "[FAIL]";
56 fprintf(stderr, " %s %-40s max=%.6e mean=%.6e cos=%.8f\n",
57 status, name, r.max_diff, r.mean_diff, r.cosine_sim);
58 if (r.max_diff >= atol) {
59 fprintf(stderr, " worst_idx=%d a=%.6e b=%.6e\n",
60 r.worst_index, r.worst_a, r.worst_b);
61 }
62}
63
64int main(int argc, char** argv) {
65 if (argc < 4) {

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected