Struct ark_r1cs_std::poly::polynomial::univariate::dense::DensePolynomialVar
source · pub struct DensePolynomialVar<F: PrimeField> {
pub coeffs: Vec<FpVar<F>>,
}
Expand description
Stores a polynomial in coefficient form, where coeffcient is represented by
a list of Fpvar<F>
.
Fields§
§coeffs: Vec<FpVar<F>>
The coefficient of x^i
is stored at location i
in self.coeffs
.
Implementations§
source§impl<F: PrimeField> DensePolynomialVar<F>
impl<F: PrimeField> DensePolynomialVar<F>
sourcepub fn from_coefficients_slice(coeffs: &[FpVar<F>]) -> Self
pub fn from_coefficients_slice(coeffs: &[FpVar<F>]) -> Self
Constructs a new polynomial from a list of coefficients.
sourcepub fn from_coefficients_vec(coeffs: Vec<FpVar<F>>) -> Self
pub fn from_coefficients_vec(coeffs: Vec<FpVar<F>>) -> Self
Constructs a new polynomial from a list of coefficients.