pub struct PolynomialMod {
pub coeffs: Vec<i64>,
pub modulus: u64,
}Expand description
A polynomial with integer coefficients considered modulo a prime power.
Fields§
§coeffs: Vec<i64>Coefficients [a_0, a_1, …, a_n] so that f(x) = Σ a_i x^i.
modulus: u64The modulus (typically p or p^k).
Implementations§
Auto Trait Implementations§
impl Freeze for PolynomialMod
impl RefUnwindSafe for PolynomialMod
impl Send for PolynomialMod
impl Sync for PolynomialMod
impl Unpin for PolynomialMod
impl UnsafeUnpin for PolynomialMod
impl UnwindSafe for PolynomialMod
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