pub trait DenseMVPolynomial<F: Field>: Polynomial<F> {
    type Term: Term;
    // Required methods
    fn from_coefficients_vec(
        num_vars: usize,
        terms: Vec<(F, Self::Term)>,
    ) -> Self;
    fn terms(&self) -> &[(F, Self::Term)];
    fn num_vars(&self) -> usize;
    fn rand<R: Rng>(d: usize, num_vars: usize, rng: &mut R) -> Self;
    // Provided method
    fn from_coefficients_slice(
        num_vars: usize,
        terms: &[(F, Self::Term)],
    ) -> Self { ... }
}Expand description
Describes the interface for multivariate polynomials
Required Associated Types§
Required Methods§
Sourcefn from_coefficients_vec(num_vars: usize, terms: Vec<(F, Self::Term)>) -> Self
 
fn from_coefficients_vec(num_vars: usize, terms: Vec<(F, Self::Term)>) -> Self
Constructs a new polynomial from a list of tuples of the form (coeff, Self::Term)
Provided Methods§
Sourcefn from_coefficients_slice(num_vars: usize, terms: &[(F, Self::Term)]) -> Self
 
fn from_coefficients_slice(num_vars: usize, terms: &[(F, Self::Term)]) -> Self
Constructs a new polynomial from a list of tuples of the form (coeff, Self::Term)
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.