Struct poseidon_parameters::v2::Polynomial
source · pub struct Polynomial<F> {
pub coeffs: Vec<F>,
}Fields§
§coeffs: Vec<F>The coefficients of the polynomial a_0, …, a_i
Implementations§
source§impl<F: PrimeField> Polynomial<F>
impl<F: PrimeField> Polynomial<F>
sourcepub fn max_degree(&self) -> usize
pub fn max_degree(&self) -> usize
Degree of the polynomial
sourcepub fn is_irreducible(&self) -> bool
pub fn is_irreducible(&self) -> bool
Check if the polynomial is irreducible using Perron’s irreducibility criterion.
Auto Trait Implementations§
impl<F> RefUnwindSafe for Polynomial<F>where F: RefUnwindSafe,
impl<F> Send for Polynomial<F>where F: Send,
impl<F> Sync for Polynomial<F>where F: Sync,
impl<F> Unpin for Polynomial<F>where F: Unpin,
impl<F> UnwindSafe for Polynomial<F>where F: UnwindSafe,
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