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 receiver.
 3    fn n(&self) -> usize;
 4
 5    /// Returns the base two logarithm of the ring dimension of the receiver.
 6    fn log_n(&self) -> usize;
 7
 8    /// Returns the number of columns of the receiver.
 9    /// This method is equivalent to [Infos::cols].
10    fn cols(&self) -> usize;
11
12    /// Returns the number of rows of the receiver.
13    fn rows(&self) -> usize;
14}