[−][src]Struct snarkos_algorithms::fft::DensePolynomial
Stores a polynomial in coefficient form.
Fields
coeffs: Vec<F>
The coefficient of x^i
is stored at location i
in self.coeffs
.
Implementations
impl<F: Field> DensePolynomial<F>
[src]
pub fn zero() -> Self
[src]
Returns the zero polynomial.
pub fn is_zero(&self) -> bool
[src]
Checks if the given polynomial is zero.
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>) -> Self
[src]
Constructs a new polynomial from a list of coefficients.
pub fn degree(&self) -> usize
[src]
Returns the degree of the polynomial.
pub fn evaluate(&self, point: F) -> F
[src]
Evaluates self
at the given point
in the field.
pub fn naive_mul(&self, other: &Self) -> Self
[src]
Perform a naive n^2 multiplicatoin of self
by other
.
pub fn rand<R: Rng>(d: usize, rng: &mut R) -> Self
[src]
Outputs a polynomial of degree d
where each coefficient is sampled uniformly at random
from the field F
.
impl<F: PrimeField> DensePolynomial<F>
[src]
pub fn mul_by_vanishing_poly(
&self,
domain: EvaluationDomain<F>
) -> DensePolynomial<F>
[src]
&self,
domain: EvaluationDomain<F>
) -> DensePolynomial<F>
Multiply self
by the vanishing polynomial for the domain domain
.
Returns the quotient and remainder of the division.
pub fn divide_by_vanishing_poly(
&self,
domain: EvaluationDomain<F>
) -> Option<(DensePolynomial<F>, DensePolynomial<F>)>
[src]
&self,
domain: EvaluationDomain<F>
) -> Option<(DensePolynomial<F>, DensePolynomial<F>)>
Divide self
by the vanishing polynomial for the domain domain
.
Returns the quotient and remainder of the division.
impl<F: PrimeField> DensePolynomial<F>
[src]
pub fn evaluate_over_domain_by_ref(
&self,
domain: EvaluationDomain<F>
) -> Evaluations<F>
[src]
&self,
domain: EvaluationDomain<F>
) -> Evaluations<F>
Evaluate self
over domain
.
pub fn evaluate_over_domain(self, domain: EvaluationDomain<F>) -> Evaluations<F>
[src]
Evaluate self
over domain
.
Trait Implementations
impl<'a, 'b, F: Field> Add<&'a DensePolynomial<F>> for &'b DensePolynomial<F>
[src]
type Output = DensePolynomial<F>
The resulting type after applying the +
operator.
fn add(self, other: &'a DensePolynomial<F>) -> DensePolynomial<F>
[src]
impl<'a, 'b, F: Field> AddAssign<&'a DensePolynomial<F>> for DensePolynomial<F>
[src]
fn add_assign(&mut self, other: &'a DensePolynomial<F>)
[src]
impl<'a, 'b, F: Field> AddAssign<(F, &'a DensePolynomial<F>)> for DensePolynomial<F>
[src]
fn add_assign(&mut self, (f, other): (F, &'a DensePolynomial<F>))
[src]
impl<F: Field> CanonicalDeserialize for DensePolynomial<F>
[src]
fn deserialize<R: Read>(reader: &mut R) -> Result<Self, SerializationError>
[src]
fn deserialize_uncompressed<R: Read>(
reader: &mut R
) -> Result<Self, SerializationError>
[src]
reader: &mut R
) -> Result<Self, SerializationError>
impl<F: Field> CanonicalSerialize for DensePolynomial<F>
[src]
fn serialize<W: Write>(&self, writer: &mut W) -> Result<(), SerializationError>
[src]
fn serialized_size(&self) -> usize
[src]
fn serialize_uncompressed<W: Write>(
&self,
writer: &mut W
) -> Result<(), SerializationError>
[src]
&self,
writer: &mut W
) -> Result<(), SerializationError>
fn uncompressed_size(&self) -> usize
[src]
impl<F: Clone + Field> Clone for DensePolynomial<F>
[src]
fn clone(&self) -> DensePolynomial<F>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<F: Field> Debug for DensePolynomial<F>
[src]
impl<F: Default + Field> Default for DensePolynomial<F>
[src]
fn default() -> DensePolynomial<F>
[src]
impl<F: Field> Deref for DensePolynomial<F>
[src]
impl<F: Field> DerefMut for DensePolynomial<F>
[src]
impl<'a, 'b, F: Field> Div<&'a DensePolynomial<F>> for &'b DensePolynomial<F>
[src]
type Output = DensePolynomial<F>
The resulting type after applying the /
operator.
fn div(self, divisor: &'a DensePolynomial<F>) -> DensePolynomial<F>
[src]
impl<F: Eq + Field> Eq for DensePolynomial<F>
[src]
impl<'a, F: 'a + Field> From<&'a DensePolynomial<F>> for DenseOrSparsePolynomial<'a, F>
[src]
fn from(other: &'a DensePolynomial<F>) -> Self
[src]
impl<F: Field, '_> From<DensePolynomial<F>> for DenseOrSparsePolynomial<'_, F>
[src]
fn from(other: DensePolynomial<F>) -> Self
[src]
impl<F: Hash + Field> Hash for DensePolynomial<F>
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl<F: Field> Into<DensePolynomial<F>> for SparsePolynomial<F>
[src]
fn into(self) -> DensePolynomial<F>
[src]
impl<F: Field, '_> Into<DensePolynomial<F>> for DenseOrSparsePolynomial<'_, F>
[src]
fn into(self) -> DensePolynomial<F>
[src]
impl<'a, 'b, F: PrimeField> Mul<&'a DensePolynomial<F>> for &'b DensePolynomial<F>
[src]
Performs O(nlogn) multiplication of polynomials if F is smooth.
type Output = DensePolynomial<F>
The resulting type after applying the *
operator.
fn mul(self, other: &'a DensePolynomial<F>) -> DensePolynomial<F>
[src]
impl<F: Field> Neg for DensePolynomial<F>
[src]
type Output = DensePolynomial<F>
The resulting type after applying the -
operator.
fn neg(self) -> DensePolynomial<F>
[src]
impl<F: PartialEq + Field> PartialEq<DensePolynomial<F>> for DensePolynomial<F>
[src]
fn eq(&self, other: &DensePolynomial<F>) -> bool
[src]
fn ne(&self, other: &DensePolynomial<F>) -> bool
[src]
impl<F: Field> StructuralEq for DensePolynomial<F>
[src]
impl<F: Field> StructuralPartialEq for DensePolynomial<F>
[src]
impl<'a, 'b, F: Field> Sub<&'a DensePolynomial<F>> for &'b DensePolynomial<F>
[src]
type Output = DensePolynomial<F>
The resulting type after applying the -
operator.
fn sub(self, other: &'a DensePolynomial<F>) -> DensePolynomial<F>
[src]
impl<'a, 'b, F: Field> SubAssign<&'a DensePolynomial<F>> for DensePolynomial<F>
[src]
fn sub_assign(&mut self, other: &'a DensePolynomial<F>)
[src]
Auto Trait Implementations
impl<F> RefUnwindSafe for DensePolynomial<F> where
F: RefUnwindSafe,
F: RefUnwindSafe,
impl<F> Send for DensePolynomial<F>
impl<F> Sync for DensePolynomial<F>
impl<F> Unpin for DensePolynomial<F> where
F: Unpin,
F: Unpin,
impl<F> UnwindSafe for DensePolynomial<F> where
F: UnwindSafe,
F: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,