MCPcopy Create free account
hub / github.com/0xShug0/audio.cpp / equal8

Function equal8

tests/vibevoice/finetune_overlay_check.cpp:26–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24}
25
26bool equal8(const std::vector<float> & a, const std::vector<float> & b) {
27 for (int i = 0; i < 8; ++i) {
28 if (std::fabs(a[i] - b[i]) > 1.0e-6F * (1.0F + std::fabs(b[i]))) {
29 return false;
30 }
31 }
32 return true;
33}
34
35bool differ8(const std::vector<float> & a, const std::vector<float> & b) {
36 for (int i = 0; i < 8; ++i) {

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected