mirror of
https://github.com/arnaucube/poulpy.git
synced 2026-02-10 13:16:44 +01:00
Added size and memory layout to VecZnxBig, VecZnxDft and VmpPmat
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
use crate::LAYOUT;
|
||||
|
||||
pub trait Infos {
|
||||
/// Returns the ring degree of the receiver.
|
||||
fn n(&self) -> usize;
|
||||
@@ -5,6 +7,12 @@ pub trait Infos {
|
||||
/// Returns the base two logarithm of the ring dimension of the receiver.
|
||||
fn log_n(&self) -> usize;
|
||||
|
||||
/// Returns the number of stacked polynomials.
|
||||
fn size(&self) -> usize;
|
||||
|
||||
/// Returns the memory layout of the stacked polynomials.
|
||||
fn layout(&self) -> LAYOUT;
|
||||
|
||||
/// Returns the number of columns of the receiver.
|
||||
/// This method is equivalent to [Infos::cols].
|
||||
fn cols(&self) -> usize;
|
||||
|
||||
Reference in New Issue
Block a user