| 21 | } |
| 22 | |
| 23 | void TopKSort(unsigned int k, unsigned int* indices, const float* values, unsigned int numElement) |
| 24 | { |
| 25 | std::partial_sort(indices, indices + k, indices + numElement, |
| 26 | [&values](unsigned int i, unsigned int j) { return values[i] > values[j]; }); |
| 27 | } |
| 28 | |
| 29 | float IntersectionOverUnion(const float* boxI, const float* boxJ) |
| 30 | { |
no outgoing calls
no test coverage detected