// Compile: // g++ -std=c++0x std11_gsl_fft_arma_main.cpp `gsl-config --libs` #include #include #include #include #define ARMA #include "gsl_fft.hpp" #include #include using namespace std; using namespace arma; // output help routine; works with many complex data types template void vector_out(std::ostream& stream, const T& v){ stream<> vectype; int main (void){ const int n=128; const int n1= 10; // Keep less than n! vectype data(n); ofstream myfile("result"); // // Symmetric pulse: 1111111111100...001111111111 // 11 ones 10 ones data.ones(); for(int i=n1+1;i