mirror of
https://github.com/arnaucube/poulpy.git
synced 2026-02-10 13:16:44 +01:00
[module]: added enum for backend [VecZnx, VecZnxDft, VecZnxBig, VmpPMat]: added ptr to data [VecZnxBorrow]: removed [VecZnxAPI]: removed
15 lines
423 B
Rust
15 lines
423 B
Rust
pub trait Infos {
|
|
/// Returns the ring degree of the receiver.
|
|
fn n(&self) -> usize;
|
|
|
|
/// Returns the base two logarithm of the ring dimension of the receiver.
|
|
fn log_n(&self) -> usize;
|
|
|
|
/// Returns the number of columns of the receiver.
|
|
/// This method is equivalent to [Infos::cols].
|
|
fn cols(&self) -> usize;
|
|
|
|
/// Returns the number of rows of the receiver.
|
|
fn rows(&self) -> usize;
|
|
}
|