Skip to content

Instantly share code, notes, and snippets.

View eritiro's full-sized avatar

eritiro eritiro

View GitHub Profile
@lukicdarkoo
lukicdarkoo / FFT.c
Last active July 21, 2024 20:18
Basic implementation of Cooley-Tukey FFT algorithm in C++
#include "FFT.h"
void fft(int *x_in,
std::complex<double> *x_out,
int N) {
// Make copy of array and apply window
for (int i = 0; i < N; i++) {
x_out[i] = std::complex<double>(x_in[i], 0);
x_out[i] *= 1; // Window