Mercurial > hg > svcore
comparison 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 |
comparison
equal
deleted
inserted
replaced
1835:804dd0c06f0e | 1837:1b688ab5f1b3 |
---|---|
57 m_max = m_min = f; | 57 m_max = m_min = f; |
58 changed = true; | 58 changed = true; |
59 } | 59 } |
60 return changed; | 60 return changed; |
61 } | 61 } |
62 bool sample(const std::vector<T> &ff) { | 62 template <typename Alloc> |
63 bool sample(const std::vector<T, Alloc> &ff) { | |
63 bool changed = false; | 64 bool changed = false; |
64 for (auto f: ff) { | 65 for (auto f: ff) { |
65 if (sample(f)) { | 66 if (sample(f)) { |
66 changed = true; | 67 changed = true; |
67 } | 68 } |