pub fn ternary_dot(a_hot: &[u8], b_hot: &[u8], dim: usize) -> i32
Compute ternary dot product between two hot-packed byte slices.