pub struct Field {
pub p: i64,
pub zetas: [i64; 128],
pub zetas_inv: [i64; 128],
pub gammas: [i64; 128],
pub n_inv: i64,
}Fields§
§p: i64§zetas: [i64; 128]§zetas_inv: [i64; 128]§gammas: [i64; 128]§n_inv: i64Implementations§
Source§impl Field
impl Field
pub const fn with_root(p: i64, zeta: i64) -> Self
pub const fn new(p: i64) -> Self
pub fn ntt(&self, a: &mut [i64; 256])
pub fn intt(&self, a: &mut [i64; 256])
pub fn basemul(&self, a: &[i64; 256], b: &[i64; 256]) -> [i64; 256]
pub fn negacyclic(&self, a: &[i64; 256], b: &[i64; 256]) -> [i64; 256]
Auto Trait Implementations§
impl Freeze for Field
impl RefUnwindSafe for Field
impl Send for Field
impl Sync for Field
impl Unpin for Field
impl UnsafeUnpin for Field
impl UnwindSafe for Field
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more