MCPcopy Create free account
hub / github.com/dblalock/bolt / dot_prods

Method dot_prods

cpp/src/quantize/bolt.cpp:450–453  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

448 q, len, _nbytes, _centroids, _offsets, _scaleby, _codes, _ncodes, _lut);
449}
450RowVector<uint16_t> BoltEncoder::dot_prods(const float* q, int len) {
451 return query_all<Reductions::DotProd>(
452 q, len, _nbytes, _centroids, _offsets, _scaleby, _codes, _ncodes, _lut);
453}
454
455vector<int64_t> BoltEncoder::knn_l2(const float* q, int len, int k) {
456 return query_knn<Reductions::DistL2>(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected