fft
std.seq.fft · Level L4The discrete Fourier transform of a complex vector, unnormalized: yₖ = Σⱼ zⱼ·e^(−2πi·jk/n).
Signature
fft(z: f64[2, n]) → f64[2, n]
Structure
The function as NOVA stores it: one box per input, operation and output, and arrows that carry values. A double border marks another library function this one runs — called once, or by Scan once per element; select it to open that function.
- input
- operation
- constant
- call
- output
Verification
- Signature proven by NOVA’s shape solver, for every size.
- Agrees with the reference
np.fft.fft(z[0] + 1j*z[1])to 80 digits (100-digit arithmetic), on all 40 test cases. - All 290 float64 results inside the running error bound; the closest uses 3% of it.
- Interpreter and NumPy backend return bit-identical results.
- correctly rounded (the float64 nearest the exact value)
- 76%
- bit-equal to the NumPy formula in float64
- 100%
- largest error, in units in the last place
- 19
Large ulp counts appear where a result is tiny next to the numbers it is computed from (after cancellation, for example), so one unit in the last place is tiny too; the absolute error is still inside the bound. Results within their own error of zero are not counted.
Note
A complex vector is a [2, n] array: real parts in the first row, imaginary parts in the second. The reference computes the transform exactly by a radix-2 recursion where n is even; the exact check sums the definition directly, so two different routes have to agree.
Identity
sha256:a5b76b8c01d489d23bbf381571056a51bb724562324d134b75b4f87a47545534The semantic hash of the graph. It changes when the program changes, and never when only its documentation does.
Control handle
- Symbol
- Ω:std.seq.fft · Ω:fft
- Pins
sha256:db9017026092bccfb9335a9b30cde9cc17ac9e68e5195c244b2074545d236b6cthis graph alone- Evidence
sha256:892ac714ad1f2ac1211f0bfdd7b60deb05011b18163f5e2c60d64289a1a5664cthe hash of its verification record- Needs
- no capability: a pure function
Through NOVA’s control layer, the symbol launches this function only while the program still matches what it pins: a change to this graph, or to any graph it reaches, needs a migration first.