pyodide/benchmark/benchmarks/fft.py

11 lines
200 B
Python
Raw Normal View History

2018-10-03 18:59:01 +00:00
# setup: N = 2**11 ; import numpy ; a = numpy.array(numpy.random.rand(N), dtype=complex) # noqa
# run: fft(a)
2018-04-05 22:07:33 +00:00
2018-10-03 18:59:01 +00:00
# pythran export fft(complex [])
2018-04-05 22:07:33 +00:00
2018-10-03 12:38:48 +00:00
import numpy as np
2018-04-05 22:07:33 +00:00
2018-10-03 18:59:01 +00:00
2018-10-03 14:57:11 +00:00
def fft(x):
return np.fft(x)