12#ifndef MLPACK_METHODS_NEIGHBOR_SEARCH_UNMAP_HPP
13#define MLPACK_METHODS_NEIGHBOR_SEARCH_UNMAP_HPP
35void Unmap(
const arma::Mat<size_t>& neighbors,
36 const arma::mat& distances,
37 const std::vector<size_t>& referenceMap,
38 const std::vector<size_t>& queryMap,
39 arma::Mat<size_t>& neighborsOut,
40 arma::mat& distancesOut,
41 const bool squareRoot =
false);
56void Unmap(
const arma::Mat<size_t>& neighbors,
57 const arma::mat& distances,
58 const std::vector<size_t>& referenceMap,
59 arma::Mat<size_t>& neighborsOut,
60 arma::mat& distancesOut,
61 const bool squareRoot =
false);
void Unmap(const arma::Mat< size_t > &neighbors, const arma::mat &distances, const std::vector< size_t > &referenceMap, const std::vector< size_t > &queryMap, arma::Mat< size_t > &neighborsOut, arma::mat &distancesOut, const bool squareRoot=false)
Assuming that the datasets have been mapped using the referenceMap and the queryMap (such as during k...
Linear algebra utility functions, generally performed on matrices or vectors.
The core includes that mlpack expects; standard C++ includes and Armadillo.