mirror of
https://github.com/arnaucube/poulpy.git
synced 2026-02-10 13:16:44 +01:00
Added basic GLWE ops
This commit is contained in:
@@ -27,6 +27,10 @@ pub trait Infos {
|
||||
self.inner().cols()
|
||||
}
|
||||
|
||||
fn rank(&self) -> usize {
|
||||
self.cols() - 1
|
||||
}
|
||||
|
||||
/// Returns the number of size per polynomial.
|
||||
fn size(&self) -> usize {
|
||||
let size: usize = self.inner().size();
|
||||
@@ -46,6 +50,11 @@ pub trait Infos {
|
||||
fn k(&self) -> usize;
|
||||
}
|
||||
|
||||
pub trait SetMetaData {
|
||||
fn set_basek(&mut self, basek: usize);
|
||||
fn set_k(&mut self, k: usize);
|
||||
}
|
||||
|
||||
pub trait GetRow<B: Backend> {
|
||||
fn get_row<R>(&self, module: &Module<B>, row_i: usize, col_j: usize, res: &mut R)
|
||||
where
|
||||
|
||||
Reference in New Issue
Block a user