Trait ark_ff::fields::FftField[][src]

pub trait FftField: Field {
    type FftParams: FftParameters;
    fn two_adic_root_of_unity() -> Self;
fn large_subgroup_root_of_unity() -> Option<Self>;
fn multiplicative_generator() -> Self; fn get_root_of_unity(n: usize) -> Option<Self> { ... } }

The interface for fields that are able to be used in FFTs.

Associated Types

Loading content...

Required methods

fn two_adic_root_of_unity() -> Self[src]

Returns the 2^s root of unity.

fn large_subgroup_root_of_unity() -> Option<Self>[src]

Returns the 2^s * small_subgroup_base^small_subgroup_base_adicity root of unity if a small subgroup is defined.

fn multiplicative_generator() -> Self[src]

Returns the multiplicative generator of char() - 1 order.

Loading content...

Provided methods

fn get_root_of_unity(n: usize) -> Option<Self>[src]

Returns the root of unity of order n, if one exists. If no small multiplicative subgroup is defined, this is the 2-adic root of unity of order n (for n a power of 2). If a small multiplicative subgroup is defined, this is the root of unity of order n for the larger subgroup generated by FftParams::LARGE_SUBGROUP_ROOT_OF_UNITY (for n = 2^i * FftParams::SMALL_SUBGROUP_BASE^j for some i, j).

Loading content...

Implementors

Loading content...