Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/numpy/numpy
/ fft1
Function
fft1
numpy/fft/tests/test_pocketfft.py:11–15 ·
view source on GitHub ↗
(x)
Source
from the content-addressed store, hash-verified
9
10
11
def
fft1(x):
12
L = len(x)
13
phase = -2j * np.pi * (np.arange(L) / L)
14
phase = np.arange(L).reshape(-1, 1) * phase
15
return
np.sum(x*np.exp(phase), axis=1)
16
17
18
class
TestFFTShift:
Callers
1
test_fft
Method · 0.85
Calls
2
reshape
Method · 0.80
sum
Method · 0.45
Tested by
no test coverage detected