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

Function dot_product

tests/test-quantize-fns.cpp:67–73  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

65}
66
67static float dot_product(const float * a1, const float * a2, size_t test_size) {
68 double sum = 0;
69 for (size_t i = 0; i < test_size; i++) {
70 sum += a1[i] * a2[i];
71 }
72 return sum;
73}
74
75// Total dot product error
76static float dot_product_error(

Callers 1

dot_product_errorFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected