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

Function binary_packed_bits_len

nodedb-vector/src/rerank/codecs/binary.rs:22–24  ·  view source on GitHub ↗
(dim: usize)

Source from the content-addressed store, hash-verified

20/// Binary is 1 bpw: `ceil(dim / 8)` bytes.
21#[inline]
22fn binary_packed_bits_len(dim: usize) -> usize {
23 dim.div_ceil(8)
24}
25
26// ── BinaryRerank ──────────────────────────────────────────────────────────────
27

Callers 1

distance_preparedMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected