Struct ark_poly::domain::mixed_radix::MixedRadixEvaluationDomain[][src]

pub struct MixedRadixEvaluationDomain<F: FftField> {
    pub size: u64,
    pub log_size_of_group: u32,
    pub size_as_field_element: F,
    pub size_inv: F,
    pub group_gen: F,
    pub group_gen_inv: F,
    pub generator_inv: F,
}

Defines a domain over which finite field (I)FFTs can be performed. Works only for fields that have a multiplicative subgroup of size that is a power-of-2 and another small subgroup over a different base defined.

Fields

size: u64

The size of the domain.

log_size_of_group: u32

log_2(self.size).

size_as_field_element: F

Size of the domain as a field element.

size_inv: F

Inverse of the size in the field.

group_gen: F

A generator of the subgroup.

group_gen_inv: F

Inverse of the generator of the subgroup.

generator_inv: F

Multiplicative generator of the finite field.

Trait Implementations

impl<F: FftField> CanonicalDeserialize for MixedRadixEvaluationDomain<F>[src]

impl<F: FftField> CanonicalSerialize for MixedRadixEvaluationDomain<F>[src]

impl<F: Clone + FftField> Clone for MixedRadixEvaluationDomain<F>[src]

impl<F: Copy + FftField> Copy for MixedRadixEvaluationDomain<F>[src]

impl<F: FftField> Debug for MixedRadixEvaluationDomain<F>[src]

impl<F: Eq + FftField> Eq for MixedRadixEvaluationDomain<F>[src]

impl<F: FftField> EvaluationDomain<F> for MixedRadixEvaluationDomain<F>[src]

type Elements = Elements<F>

The type of the elements iterator.

fn new(num_coeffs: usize) -> Option<Self>[src]

Construct a domain that is large enough for evaluations of a polynomial having num_coeffs coefficients.

fn evaluate_vanishing_polynomial(&self, tau: F) -> F[src]

This evaluates the vanishing polynomial for this domain at tau. For multiplicative subgroups, this polynomial is z(X) = X^self.size - 1.

fn element(&self, i: usize) -> F[src]

Returns the i-th element of the domain, where elements are ordered by their power of the generator which they correspond to. e.g. the i-th element is g^i

fn elements(&self) -> Elements<F>

Notable traits for Elements<F>

impl<F: FftField> Iterator for Elements<F> type Item = F;
[src]

Return an iterator over the elements of the domain.

impl<F: Hash + FftField> Hash for MixedRadixEvaluationDomain<F>[src]

impl<F: PartialEq + FftField> PartialEq<MixedRadixEvaluationDomain<F>> for MixedRadixEvaluationDomain<F>[src]

impl<F: FftField> StructuralEq for MixedRadixEvaluationDomain<F>[src]

impl<F: FftField> StructuralPartialEq for MixedRadixEvaluationDomain<F>[src]

Auto Trait Implementations

impl<F> Send for MixedRadixEvaluationDomain<F>

impl<F> Sync for MixedRadixEvaluationDomain<F>

impl<F> Unpin for MixedRadixEvaluationDomain<F> where
    F: Unpin

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> CallHasher for T where
    T: Hash + ?Sized

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,