MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / f32_ref

Function f32_ref

nodedb-vector/src/distance/dispatch.rs:124–126  ·  view source on GitHub ↗
(metric: DistanceMetric)

Source from the content-addressed store, hash-verified

122 const B: [f32; 4] = [4.0, 3.0, 2.0, 1.0];
123
124 fn f32_ref(metric: DistanceMetric) -> f32 {
125 crate::distance::distance(&A, &B, metric)
126 }
127
128 // ── F32 path: byte-exact match with direct distance() ────────────────────
129

Calls 1

distanceFunction · 0.70