MCPcopy 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]

Calls

no outgoing calls