pub fn trit_at(packed: &[u8], k: usize) -> i32
Extract the ternary value {-1,0,+1} at linear weight index k from packed trits — the exact operation ternary_gemm.wgsl::trit_at performs (5 trits/byte, base-3).
{-1,0,+1}
k
ternary_gemm.wgsl::trit_at