mirror of
https://github.com/mborgerding/kissfft.git
synced 2025-05-27 21:20:27 -04:00
*** empty log message ***
This commit is contained in:
parent
51a73f7ccc
commit
f0e7410b0e
@ -339,8 +339,8 @@ kiss_fft_cfg kiss_fft_alloc(int nfft,int inverse_fft,void * mem,size_t * lenmem
|
|||||||
st->inverse = inverse_fft;
|
st->inverse = inverse_fft;
|
||||||
|
|
||||||
for (i=0;i<nfft;++i) {
|
for (i=0;i<nfft;++i) {
|
||||||
const double pi=3.14159265358979323846264338327;
|
const double pi=3.141592653589793238462643383279502884197169399375105820974944;
|
||||||
double phase = ( -2*pi /nfft ) * i;
|
double phase = -2*pi*i / nfft;
|
||||||
if (st->inverse)
|
if (st->inverse)
|
||||||
phase *= -1;
|
phase *= -1;
|
||||||
kf_cexp(st->twiddles+i, phase );
|
kf_cexp(st->twiddles+i, phase );
|
||||||
|
@ -153,9 +153,9 @@ def main():
|
|||||||
print 'Note: Real optimization not yet done for odd length ffts and multi-D'
|
print 'Note: Real optimization not yet done for odd length ffts and multi-D'
|
||||||
test_fft(1)
|
test_fft(1)
|
||||||
else:
|
else:
|
||||||
for dim in range(1,9):
|
print 'Testing multi-dimensional FFTs'
|
||||||
|
for dim in range(1,4):
|
||||||
test_fft( dim )
|
test_fft( dim )
|
||||||
print 'We crossed the 8th dimension. Buckaroo would be proud'
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
main()
|
main()
|
||||||
|
Loading…
Reference in New Issue
Block a user