comparison data/model/Dense3DModelPeakCache.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 21c792334c2e
children
comparison
equal deleted inserted replaced
1835:804dd0c06f0e 1837:1b688ab5f1b3
134 134
135 private: 135 private:
136 ModelId m_source; 136 ModelId m_source;
137 int m_columnsPerPeak; 137 int m_columnsPerPeak;
138 138
139 mutable std::vector<std::vector<float>> m_cache; 139 mutable std::vector<Column> m_cache;
140 mutable std::vector<bool> m_coverage; // bool for space efficiency 140 mutable std::vector<bool> m_coverage; // bool for space efficiency
141 // (vector of bool is a bitmap) 141 // (vector of bool is a bitmap)
142 mutable bool m_finalColumnIncomplete; 142 mutable bool m_finalColumnIncomplete;
143 143
144 bool haveColumn(int column) const; 144 bool haveColumn(int column) const;