Trait ark_poly_commit::UVPolynomial[][src]

pub trait UVPolynomial<F>: Polynomial<F, Point = F> where
    F: Field
{ pub fn from_coefficients_slice(coeffs: &[F]) -> Self;
pub fn from_coefficients_vec(coeffs: Vec<F, Global>) -> Self;
pub fn coeffs(&self) -> &[F]

Notable traits for &'_ [u8]

impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8]
;
pub fn rand<R>(d: usize, rng: &mut R) -> Self
    where
        R: Rng
; }

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]

Notable traits for &'_ [u8]

impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8]
[src]

Returns the coefficients of self

pub fn rand<R>(d: usize, rng: &mut R) -> Self where
    R: Rng
[src]

Returns a univariate polynomial of degree d where each coefficient is sampled uniformly at random.

Loading content...

Implementations on Foreign Types

impl<F> UVPolynomial<F> for DensePolynomial<F> where
    F: Field
[src]

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]

Notable traits for &'_ [u8]

impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8]
[src]

Returns the coefficients of self

pub fn rand<R>(d: usize, rng: &mut R) -> DensePolynomial<F> where
    R: Rng
[src]

Outputs a univariate polynomial of degree d where each coefficient is sampled uniformly at random.

Loading content...

Implementors

Loading content...