MCPcopy Create free account
hub / github.com/andrewkchan/deepseek.cpp / floatEquals

Function floatEquals

src/test.cpp:13–15  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11#include "time_utils.h"
12
13bool floatEquals(float a, float b, float epsilon = 1e-5) {
14 return std::abs(a - b) < epsilon;
15}
16
17bool arrayEquals(const std::vector<float>& a, const std::vector<float>& b, float epsilon = 1e-4) {
18 if (a.size() != b.size()) {

Callers 1

arrayEqualsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected