MCPcopy Create free account
hub / github.com/algorithm-archivists/algorithm-archive / main

Function main

contents/cooley_tukey/code/c/fft.c:107–124  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

105}
106
107int main() {
108 srand((unsigned int)time(NULL));
109 double complex x[64], y[64], z[64];
110 for (size_t i = 0; i < 64; ++i) {
111 x[i] = rand() / (double) RAND_MAX;
112 y[i] = x[i];
113 z[i] = x[i];
114 }
115
116 fft(x, 64);
117 cooley_tukey(y, 64);
118 iterative_cooley_tukey(z, 64);
119
120 approx(x, y, 64);
121 approx(x, z, 64);
122
123 return 0;
124}

Callers

nothing calls this directly

Calls 4

fftFunction · 0.70
cooley_tukeyFunction · 0.70
iterative_cooley_tukeyFunction · 0.70
approxFunction · 0.70

Tested by

no test coverage detected