diff base/Extents.h @ 1837:1b688ab5f1b3

Unify various vectors to our base floatvec_t type; store columns in fft model cache at their desired height so we can return a reference (speeding up the peak-frequency spectrogram in particular)
author Chris Cannam
date Thu, 09 Apr 2020 11:22:55 +0100
parents bbfb5a1e4b84
children
line wrap: on
line diff
--- a/base/Extents.h	Mon Apr 06 13:55:44 2020 +0100
+++ b/base/Extents.h	Thu Apr 09 11:22:55 2020 +0100
@@ -59,7 +59,8 @@
         }
         return changed;
     }
-    bool sample(const std::vector<T> &ff) {
+    template <typename Alloc>
+    bool sample(const std::vector<T, Alloc> &ff) {
         bool changed = false;
         for (auto f: ff) {
             if (sample(f)) {