mirror of
https://github.com/mborgerding/kissfft.git
synced 2025-06-04 01:28:23 -04:00
*** empty log message ***
This commit is contained in:
parent
aaa04d9b60
commit
c2eaab8606
@ -20,7 +20,8 @@ def c_format(v,round=0):
|
|||||||
s= ','.join( [ '{%.60f ,%.60f }' %(c.real,c.imag) for c in v ] )
|
s= ','.join( [ '{%.60f ,%.60f }' %(c.real,c.imag) for c in v ] )
|
||||||
return re.sub(r'\.?0+ ',' ',s)
|
return re.sub(r'\.?0+ ',' ',s)
|
||||||
|
|
||||||
def test_vec( v,inverse ):
|
def test_vec( n,inverse ):
|
||||||
|
v = randvec(n,1)
|
||||||
if inverse:
|
if inverse:
|
||||||
tvecout = FFT.inverse_fft(v)
|
tvecout = FFT.inverse_fft(v)
|
||||||
tvecout = [ c * len(v) for c in tvecout ]
|
tvecout = [ c * len(v) for c in tvecout ]
|
||||||
@ -81,9 +82,9 @@ def main():
|
|||||||
print compare_func()
|
print compare_func()
|
||||||
print "int main() {"
|
print "int main() {"
|
||||||
for n in fftsizes:
|
for n in fftsizes:
|
||||||
v = randvec(int(n),1)
|
n = int(n)
|
||||||
print test_vec(v,0)
|
print test_vec(n,0)
|
||||||
print test_vec(v,1)
|
print test_vec(n,1)
|
||||||
print """
|
print """
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user