// SPDX-License-Identifier: Apache-2.0
//! BitNet b1.58 ternary quantization codec.
//!
//! Encodes FP32 vectors into ternary trits `{-1, 0, +1}` using per-vector
//! mean-absolute-value (absmean) scaling. Two storage layouts are supported:
//!
//! - **Cold** ([`QuantMode::TernaryPacked`]): 5 trits/byte via base-3 packing
//! (1.6 bpw). Optimal for disk; decompressed on page-in.
//! - **Hot** ([`QuantMode::TernarySimd`]): 2 bpw, 4 trits/byte, suitable for
//! direct SIMD load. [`VectorCodec::encode`] produces hot format by default.
//!
//! [`QuantMode::TernaryPacked`]: crate::vector_quant::layout::QuantMode::TernaryPacked
//! [`QuantMode::TernarySimd`]: crate::vector_quant::layout::QuantMode::TernarySimd
//! [`VectorCodec::encode`]: crate::vector_quant::codec::VectorCodec::encode
pub use ;
pub use ;
pub use ternary_dot;