| 14 | namespace af { |
| 15 | |
| 16 | void nearestNeighbour(array& idx, array& dist, const array& query, |
| 17 | const array& train, const dim_t dist_dim, |
| 18 | const unsigned n_dist, const af_match_type dist_type) { |
| 19 | af_array temp_idx = 0; |
| 20 | af_array temp_dist = 0; |
| 21 | AF_THROW(af_nearest_neighbour(&temp_idx, &temp_dist, query.get(), |
| 22 | train.get(), dist_dim, n_dist, dist_type)); |
| 23 | idx = array(temp_idx); |
| 24 | dist = array(temp_dist); |
| 25 | } |
| 26 | |
| 27 | } // namespace af |
no test coverage detected