Module lambdaworks_math::fft::cpu::roots_of_unity
source · Functions§
- Returns a
Vec
of the powers of a2^n
th primitive root of unity in some configurationconfig
. For example, in aNatural
config this would yield: w^0, w^1, w^2… - Returns a
Vec
of the powers of a2^n
th primitive root of unity, scaledoffset
times, in a Natural configuration. - Returns 2^
order
/ 2 twiddle factors for FFT in some configurationconfig
. Twiddle factors are powers of a primitive root of unity of the field, used for FFT computations. FFT only requires the first half of all the powers