Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/NodeDB-Lab/nodedb
/ make_codec
Function
make_codec
nodedb-vector/src/quantize/binary_codec.rs:105–107 ·
view source on GitHub ↗
(dim: usize)
Source
from the content-addressed store, hash-verified
103
use super::*;
104
105
fn make_codec(dim: usize) -> BinaryCodec {
106
BinaryCodec { dim }
107
}
108
109
/// `encode` round-trip: packed_bits in the UQV must match `binary::encode`.
110
#[test]
Callers
5
encode_packed_bits_matches_raw_encode
Function · 0.70
fast_symmetric_distance_is_non_negative_finite
Function · 0.70
exact_asymmetric_distance_is_non_negative_finite
Function · 0.70
opposite_vectors_have_max_hamming_distance
Function · 0.70
trait_bounds_compile
Function · 0.70
Calls
no outgoing calls
Tested by
5
encode_packed_bits_matches_raw_encode
Function · 0.56
fast_symmetric_distance_is_non_negative_finite
Function · 0.56
exact_asymmetric_distance_is_non_negative_finite
Function · 0.56
opposite_vectors_have_max_hamming_distance
Function · 0.56
trait_bounds_compile
Function · 0.56