diff 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
line wrap: on
line diff
--- a/data/fft/FFTapi.h	Fri Jun 12 18:20:09 2015 +0100
+++ b/data/fft/FFTapi.h	Fri Jun 12 18:50:52 2015 +0100
@@ -79,7 +79,7 @@
         std::vector<std::complex<float> > result;
         result.reserve(hs + 1);
         for (int i = 0; i <= hs; ++i) {
-            result[i] = { m_output[i][0], m_output[i][1] };
+            result.push_back({ m_output[i][0], m_output[i][1] });
         }
         return result;
     }