mirror of
https://github.com/arnaucube/poulpy.git
synced 2026-02-10 05:06:44 +01:00
11 lines
465 B
Rust
11 lines
465 B
Rust
#[derive(Clone, Copy, Debug)]
|
|
pub(crate) enum Distribution {
|
|
TernaryFixed(usize), // Ternary with fixed Hamming weight
|
|
TernaryProb(f64), // Ternary with probabilistic Hamming weight
|
|
BinaryFixed(usize), // Binary with fixed Hamming weight
|
|
BinaryProb(f64), // Binary with probabilistic Hamming weight
|
|
BinaryBlock(usize), // Binary split in block of size 2^k
|
|
ZERO, // Debug mod
|
|
NONE, // Unitialized
|
|
}
|