Struct ark_poly::domain::mixed_radix::MixedRadixEvaluationDomain [−][src]
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]
fn deserialize<R: Read>(reader: R) -> Result<Self, SerializationError>
[src]
fn deserialize_uncompressed<R: Read>(
reader: R
) -> Result<Self, SerializationError>
[src]
reader: R
) -> Result<Self, SerializationError>
fn deserialize_unchecked<R: Read>(reader: R) -> Result<Self, SerializationError>
[src]
impl<F: FftField> CanonicalSerialize for MixedRadixEvaluationDomain<F>
[src]
fn serialize<W: Write>(&self, writer: W) -> Result<(), SerializationError>
[src]
fn serialized_size(&self) -> usize
[src]
fn serialize_uncompressed<W: Write>(
&self,
writer: W
) -> Result<(), SerializationError>
[src]
&self,
writer: W
) -> Result<(), SerializationError>
fn serialize_unchecked<W: Write>(
&self,
writer: W
) -> Result<(), SerializationError>
[src]
&self,
writer: W
) -> Result<(), SerializationError>
fn uncompressed_size(&self) -> usize
[src]
impl<F: Clone + FftField> Clone for MixedRadixEvaluationDomain<F>
[src]
fn clone(&self) -> MixedRadixEvaluationDomain<F>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[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 compute_size_of_domain(num_coeffs: usize) -> Option<usize>
[src]
fn size(&self) -> usize
[src]
fn fft_in_place<T: DomainCoeff<F>>(&self, coeffs: &mut Vec<T>)
[src]
fn ifft_in_place<T: DomainCoeff<F>>(&self, evals: &mut Vec<T>)
[src]
fn coset_ifft_in_place<T: DomainCoeff<F>>(&self, evals: &mut Vec<T>)
[src]
fn evaluate_all_lagrange_coefficients(&self, tau: F) -> Vec<F>
[src]
fn vanishing_polynomial(&self) -> SparsePolynomial<F>
[src]
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>ⓘ
[src]
Return an iterator over the elements of the domain.
fn sample_element_outside_domain<R: Rng>(&self, rng: &mut R) -> F
[src]
fn size_as_field_element(&self) -> F
[src]
fn fft<T: DomainCoeff<F>>(&self, coeffs: &[T]) -> Vec<T>
[src]
fn ifft<T: DomainCoeff<F>>(&self, evals: &[T]) -> Vec<T>
[src]
fn distribute_powers<T: DomainCoeff<F>>(coeffs: &mut [T], g: F)
[src]
fn distribute_powers_and_mul_by_const<T: DomainCoeff<F>>(
coeffs: &mut [T],
g: F,
c: F
)
[src]
coeffs: &mut [T],
g: F,
c: F
)
fn coset_fft<T: DomainCoeff<F>>(&self, coeffs: &[T]) -> Vec<T>
[src]
fn coset_fft_in_place<T: DomainCoeff<F>>(&self, coeffs: &mut Vec<T>)
[src]
fn coset_ifft<T: DomainCoeff<F>>(&self, evals: &[T]) -> Vec<T>
[src]
fn divide_by_vanishing_poly_on_coset_in_place(&self, evals: &mut [F])
[src]
fn reindex_by_subdomain(&self, other: Self, index: usize) -> usize
[src]
#[must_use]fn mul_polynomials_in_evaluation_domain(
&self,
self_evals: &[F],
other_evals: &[F]
) -> Vec<F>
[src]
&self,
self_evals: &[F],
other_evals: &[F]
) -> Vec<F>
impl<F: Hash + FftField> Hash for MixedRadixEvaluationDomain<F>
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl<F: PartialEq + FftField> PartialEq<MixedRadixEvaluationDomain<F>> for MixedRadixEvaluationDomain<F>
[src]
fn eq(&self, other: &MixedRadixEvaluationDomain<F>) -> bool
[src]
fn ne(&self, other: &MixedRadixEvaluationDomain<F>) -> bool
[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,
F: Unpin,
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,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> CallHasher for T where
T: Hash + ?Sized,
T: Hash + ?Sized,
pub default fn get_hash<H, B>(value: &H, build_hasher: &B) -> u64 where
B: BuildHasher,
H: Hash + ?Sized,
B: BuildHasher,
H: Hash + ?Sized,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub 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.
pub 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.
pub 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>,