Struct snarkvm_algorithms::fft::evaluations::Evaluations
source · [−]pub struct Evaluations<F: PrimeField> {
pub evaluations: Vec<F>,
/* private fields */
}
Expand description
Stores a polynomial in evaluation form.
Fields
evaluations: Vec<F>
The evaluations of a polynomial over the domain D
Implementations
sourceimpl<F: PrimeField> Evaluations<F>
impl<F: PrimeField> Evaluations<F>
sourcepub fn from_vec_and_domain(
evaluations: Vec<F>,
domain: EvaluationDomain<F>
) -> Self
pub fn from_vec_and_domain(
evaluations: Vec<F>,
domain: EvaluationDomain<F>
) -> Self
Construct Self
from evaluations and a domain.
sourcepub fn interpolate_by_ref(&self) -> DensePolynomial<F>
pub fn interpolate_by_ref(&self) -> DensePolynomial<F>
Interpolate a polynomial from a list of evaluations
sourcepub fn interpolate(self) -> DensePolynomial<F>
pub fn interpolate(self) -> DensePolynomial<F>
Interpolate a polynomial from a list of evaluations
Trait Implementations
sourceimpl<'a, 'b, F: PrimeField> Add<&'a Evaluations<F>> for &'b Evaluations<F>
impl<'a, 'b, F: PrimeField> Add<&'a Evaluations<F>> for &'b Evaluations<F>
type Output = Evaluations<F>
type Output = Evaluations<F>
The resulting type after applying the +
operator.
sourcefn add(self, other: &'a Evaluations<F>) -> Evaluations<F>
fn add(self, other: &'a Evaluations<F>) -> Evaluations<F>
Performs the +
operation. Read more
sourceimpl<'a, F: PrimeField> AddAssign<&'a Evaluations<F>> for Evaluations<F>
impl<'a, F: PrimeField> AddAssign<&'a Evaluations<F>> for Evaluations<F>
sourcefn add_assign(&mut self, other: &'a Evaluations<F>)
fn add_assign(&mut self, other: &'a Evaluations<F>)
Performs the +=
operation. Read more
sourceimpl<F: PrimeField> CanonicalDeserialize for Evaluations<F>
impl<F: PrimeField> CanonicalDeserialize for Evaluations<F>
sourcefn deserialize<R: Read>(reader: &mut R) -> Result<Self, SerializationError>
fn deserialize<R: Read>(reader: &mut R) -> Result<Self, SerializationError>
Reads Self
from reader
.
sourcefn deserialize_uncompressed<R: Read>(
reader: &mut R
) -> Result<Self, SerializationError>
fn deserialize_uncompressed<R: Read>(
reader: &mut R
) -> Result<Self, SerializationError>
Reads Self
from reader
without compression.
sourceimpl<F: PrimeField> CanonicalSerialize for Evaluations<F>
impl<F: PrimeField> CanonicalSerialize for Evaluations<F>
sourcefn serialize<W: Write>(&self, writer: &mut W) -> Result<(), SerializationError>
fn serialize<W: Write>(&self, writer: &mut W) -> Result<(), SerializationError>
Serializes self
into writer
.
fn serialized_size(&self) -> usize
sourcefn serialize_uncompressed<W: Write>(
&self,
writer: &mut W
) -> Result<(), SerializationError>
fn serialize_uncompressed<W: Write>(
&self,
writer: &mut W
) -> Result<(), SerializationError>
Serializes self
into writer
without compression.
fn uncompressed_size(&self) -> usize
sourceimpl<F: Clone + PrimeField> Clone for Evaluations<F>
impl<F: Clone + PrimeField> Clone for Evaluations<F>
sourcefn clone(&self) -> Evaluations<F>
fn clone(&self) -> Evaluations<F>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<F: Debug + PrimeField> Debug for Evaluations<F>
impl<F: Debug + PrimeField> Debug for Evaluations<F>
sourceimpl<'a, 'b, F: PrimeField> Div<&'a Evaluations<F>> for &'b Evaluations<F>
impl<'a, 'b, F: PrimeField> Div<&'a Evaluations<F>> for &'b Evaluations<F>
type Output = Evaluations<F>
type Output = Evaluations<F>
The resulting type after applying the /
operator.
sourcefn div(self, other: &'a Evaluations<F>) -> Evaluations<F>
fn div(self, other: &'a Evaluations<F>) -> Evaluations<F>
Performs the /
operation. Read more
sourceimpl<'a, F: PrimeField> DivAssign<&'a Evaluations<F>> for Evaluations<F>
impl<'a, F: PrimeField> DivAssign<&'a Evaluations<F>> for Evaluations<F>
sourcefn div_assign(&mut self, other: &'a Evaluations<F>)
fn div_assign(&mut self, other: &'a Evaluations<F>)
Performs the /=
operation. Read more
sourceimpl<F: Hash + PrimeField> Hash for Evaluations<F>
impl<F: Hash + PrimeField> Hash for Evaluations<F>
sourceimpl<F: PrimeField> Index<usize> for Evaluations<F>
impl<F: PrimeField> Index<usize> for Evaluations<F>
sourceimpl<'a, 'b, F: PrimeField> Mul<&'a Evaluations<F>> for &'b Evaluations<F>
impl<'a, 'b, F: PrimeField> Mul<&'a Evaluations<F>> for &'b Evaluations<F>
type Output = Evaluations<F>
type Output = Evaluations<F>
The resulting type after applying the *
operator.
sourcefn mul(self, other: &'a Evaluations<F>) -> Evaluations<F>
fn mul(self, other: &'a Evaluations<F>) -> Evaluations<F>
Performs the *
operation. Read more
sourceimpl<'a, F: PrimeField> MulAssign<&'a Evaluations<F>> for Evaluations<F>
impl<'a, F: PrimeField> MulAssign<&'a Evaluations<F>> for Evaluations<F>
sourcefn mul_assign(&mut self, other: &'a Evaluations<F>)
fn mul_assign(&mut self, other: &'a Evaluations<F>)
Performs the *=
operation. Read more
sourceimpl<F: PartialEq + PrimeField> PartialEq<Evaluations<F>> for Evaluations<F>
impl<F: PartialEq + PrimeField> PartialEq<Evaluations<F>> for Evaluations<F>
sourcefn eq(&self, other: &Evaluations<F>) -> bool
fn eq(&self, other: &Evaluations<F>) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &Evaluations<F>) -> bool
fn ne(&self, other: &Evaluations<F>) -> bool
This method tests for !=
.
sourceimpl<'a, 'b, F: PrimeField> Sub<&'a Evaluations<F>> for &'b Evaluations<F>
impl<'a, 'b, F: PrimeField> Sub<&'a Evaluations<F>> for &'b Evaluations<F>
type Output = Evaluations<F>
type Output = Evaluations<F>
The resulting type after applying the -
operator.
sourcefn sub(self, other: &'a Evaluations<F>) -> Evaluations<F>
fn sub(self, other: &'a Evaluations<F>) -> Evaluations<F>
Performs the -
operation. Read more
sourceimpl<'a, F: PrimeField> SubAssign<&'a Evaluations<F>> for Evaluations<F>
impl<'a, F: PrimeField> SubAssign<&'a Evaluations<F>> for Evaluations<F>
sourcefn sub_assign(&mut self, other: &'a Evaluations<F>)
fn sub_assign(&mut self, other: &'a Evaluations<F>)
Performs the -=
operation. Read more
impl<F: Eq + PrimeField> Eq for Evaluations<F>
impl<F: PrimeField> StructuralEq for Evaluations<F>
impl<F: PrimeField> StructuralPartialEq for Evaluations<F>
Auto Trait Implementations
impl<F> RefUnwindSafe for Evaluations<F> where
F: RefUnwindSafe,
impl<F> Send for Evaluations<F>
impl<F> Sync for Evaluations<F>
impl<F> Unpin for Evaluations<F> where
F: Unpin,
impl<F> UnwindSafe for Evaluations<F> where
F: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcepub fn equivalent(&self, key: &K) -> bool
pub fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.
impl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more