arnaucube
arnaucube/poulpyPublic Self-hosted repository
poulpy/base2k/src/infos.rs
base2k/src/infos.rsRaw
 1pub trait Infos {
 2    /// Returns the ring degree of the polynomials.
 3    fn n(&self) -> usize;
 4
 5    /// Returns the base two logarithm of the ring dimension of the polynomials.
 6    fn log_n(&self) -> usize;
 7
 8    /// Returns the number of rows.
 9    fn rows(&self) -> usize;
10
11    /// Returns the number of polynomials in each row.
12    fn cols(&self) -> usize;
13
14    /// Returns the number of limbs per polynomial.
15    fn limbs(&self) -> usize;
16
17    /// Returns the total number of small polynomials.
18    fn poly_count(&self) -> usize;
19}