*** empty log message ***

This commit is contained in:
Mark Borgerding 2003-12-05 03:51:33 +00:00
parent aaa04d9b60
commit c2eaab8606

View File

@ -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;
} }