comparison data/fft/FFTapi.h @ 1093:44b079427b36 simple-fft-model

Make a small cache of recently-used columns
author Chris Cannam
date Fri, 12 Jun 2015 18:50:52 +0100
parents bdebff3265ae
children b66734b5f806
comparison
equal deleted inserted replaced
1092:70f18770b72d 1093:44b079427b36
77 } 77 }
78 fftf_execute(m_plan); 78 fftf_execute(m_plan);
79 std::vector<std::complex<float> > result; 79 std::vector<std::complex<float> > result;
80 result.reserve(hs + 1); 80 result.reserve(hs + 1);
81 for (int i = 0; i <= hs; ++i) { 81 for (int i = 0; i <= hs; ++i) {
82 result[i] = { m_output[i][0], m_output[i][1] }; 82 result.push_back({ m_output[i][0], m_output[i][1] });
83 } 83 }
84 return result; 84 return result;
85 } 85 }
86 86
87 private: 87 private: