mirror of
https://github.com/arnaucube/fhe-study.git
synced 2026-01-24 04:33:52 +01:00
add GLWE ciphertext-ciphertext addition, and ciphertext-plaintext addition
This commit is contained in:
@@ -13,7 +13,7 @@ use crate::Ring;
|
||||
/// Tuple of K Ring (Rq) elements. We use Vec<R> to allocate it in the heap,
|
||||
/// since if using a fixed-size array it would overflow the stack.
|
||||
#[derive(Clone, Debug)]
|
||||
pub struct TR<R: Ring, const K: usize>(Vec<R>);
|
||||
pub struct TR<R: Ring, const K: usize>(pub Vec<R>);
|
||||
|
||||
impl<R: Ring, const K: usize> TR<R, K> {
|
||||
pub fn rand(mut rng: impl Rng, dist: impl Distribution<f64>) -> Self {
|
||||
|
||||
Reference in New Issue
Block a user