MCPcopy 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
11def 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
18class TestFFTShift:

Callers 1

test_fftMethod · 0.85

Calls 2

reshapeMethod · 0.80
sumMethod · 0.45

Tested by

no test coverage detected