| 440 | // Returns indices of highest K magnitudes in v. |
| 441 | template <typename T> |
| 442 | std::vector<size_t> topKMagnitudes(const std::vector<T>& v, const size_t k) |
| 443 | { |
| 444 | std::vector<size_t> indices = samplesCommon::argMagnitudeSort(v.cbegin(), v.cend()); |
| 445 | indices.resize(k); |
| 446 | return indices; |
| 447 | } |
| 448 | |
| 449 | template <typename T> |
| 450 | bool readASCIIFile(const std::string& fileName, const size_t size, std::vector<T>& out) |
nothing calls this directly
no test coverage detected