pub fn binary_dot(a: &PackedBinary, b: &PackedBinary) -> u32Expand description
Compute binary dot product (intersection count).
use innr::binary::{encode_binary, binary_dot};
let a = encode_binary(&[1.0, -1.0, 1.0, -1.0], 0.0);
let b = encode_binary(&[1.0, 1.0, -1.0, -1.0], 0.0);
assert_eq!(binary_dot(&a, &b), 1); // only position 0 is 1 in both