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.
Auto Trait Implementations§
impl<F> Freeze for DensePolynomialVar<F>
impl<F> !RefUnwindSafe for DensePolynomialVar<F>
impl<F> !Send for DensePolynomialVar<F>
impl<F> !Sync for DensePolynomialVar<F>
impl<F> Unpin for DensePolynomialVar<F>where
F: Unpin,
impl<F> !UnwindSafe for DensePolynomialVar<F>
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more