bfv: get rid of constant generics (reason in previous commit)

This commit is contained in:
2025-08-11 19:35:48 +00:00
parent d484f29b17
commit 78324a3a8d
2 changed files with 316 additions and 289 deletions

View File

@@ -22,8 +22,8 @@ use crate::Ring;
/// The implementation assumes that q is prime.
#[derive(Clone)]
pub struct Rq {
pub(crate) q: u64, // TODO think if really needed or it's fine with coeffs[0].q
pub(crate) n: usize,
pub q: u64, // TODO think if really needed or it's fine with coeffs[0].q
pub n: usize,
pub(crate) coeffs: Vec<Zq>,