mersenneforum.org

mersenneforum.org (https://www.mersenneforum.org/index.php)
-   Programming (https://www.mersenneforum.org/forumdisplay.php?f=29)
-   -   Questions on coding my FFT&LLR implementation (https://www.mersenneforum.org/showthread.php?t=10610)

nuggetprime 2008-09-05 15:47

Questions on coding my FFT&LLR implementation
 
I know that there is a fft-thread in this forum, but it's still to hard for me. I'm currently coding an implementation of the LLR(Lucas-lehmer-riesel) test.It's currently using the GMP and I want to implement FFT for it. Can you please explain me the way from the x^2 calculation(I think that's the point where FFT helps) to the FFT. Also,if possible,can you show me an example on a small mersenne number(LL test)? This might help me a lot in understanding.

Thanks,
nuggetprime

ewmayer 2008-09-05 18:02

Search for the thread titled "FFT explanation for non math guys".

cheesehead 2008-09-05 23:29

... in the Math subforum. Start at its post #5.

Prime95 2008-09-05 23:58

[QUOTE=ewmayer;140990]Search for the thread titled "FFT explanation for non math guys".[/QUOTE]


I stickied it as it was hard to find and is asked for several times a year

nuggetprime 2008-09-06 10:03

Thanks,I'm now understanding DFT in basics.
How does then the IBDWT work(different)? There aren't many resources on the web to this.

Thanks,
--nugget

Prime95 2008-09-06 13:29

Look at [url]http://www.mersenne.org/intfft.txt[/url]

It explains IBDWT in an all-integer FFT.

nuggetprime 2008-09-07 14:08

Question: What's the best way to store the transformed numbers? floating point,or?

Thanks,
nuggetprime

nuggetprime 2008-09-08 17:41

Otherwise formulated:is double enough for,say, FFT length 500K?

Thanks,
nuggetprime

jasonp 2008-09-09 14:01

[QUOTE=nuggetprime;141463]Otherwise formulated:is double enough for,say, FFT length 500K?
[/QUOTE]
Yes, double precision should be plenty. It may be just insufficient if you are not careful with how you generate the trig factors for the FFT; references often use a recursion for them which causes increased roundoff error for very long transform lengths.

nuggetprime 2008-09-10 15:19

Thank you for your answer jasonp.
But how can I calculate in binary in C?
I probably will have to create arrays of 1-bit fields,or?

Thanks,
nugget

nuggetprime 2008-09-10 17:32

The above was not stated precisely, I think.
I want to know if in C, when i define a ,say, unsigned short int, how can I access a certain bit of it,in reasonable CPU time?
Thanks,
--nuggetprime


All times are UTC. The time now is 20:32.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.