Trait ark_poly_commit::UVPolynomial [−][src]
Describes the interface for univariate polynomials
Required methods
pub fn from_coefficients_slice(coeffs: &[F]) -> Self[src]
Constructs a new polynomial from a list of coefficients.
pub fn from_coefficients_vec(coeffs: Vec<F, Global>) -> Self[src]
Constructs a new polynomial from a list of coefficients.
pub fn coeffs(&self) -> &[F]ⓘ[src]
Returns the coefficients of self
pub fn rand<R>(d: usize, rng: &mut R) -> Self where
R: Rng, [src]
R: Rng,
Returns a univariate polynomial of degree d where each
coefficient is sampled uniformly at random.
Implementations on Foreign Types
impl<F> UVPolynomial<F> for DensePolynomial<F> where
F: Field, [src]
F: Field,
pub fn from_coefficients_slice(coeffs: &[F]) -> DensePolynomial<F>[src]
Constructs a new polynomial from a list of coefficients.
pub fn from_coefficients_vec(coeffs: Vec<F, Global>) -> DensePolynomial<F>[src]
Constructs a new polynomial from a list of coefficients.
pub fn coeffs(&self) -> &[F]ⓘ[src]
Returns the coefficients of self
pub fn rand<R>(d: usize, rng: &mut R) -> DensePolynomial<F> where
R: Rng, [src]
R: Rng,
Outputs a univariate polynomial of degree d where
each coefficient is sampled uniformly at random.