diff --git a/doc/guide/sample.hpp b/doc/guide/sample.hpp index c54f52bb11..16cc2fb0bc 100644 --- a/doc/guide/sample.hpp +++ b/doc/guide/sample.hpp @@ -60,8 +60,8 @@ int main() NeighborSearch nn(data); // Create the object we will store the nearest neighbors in. - arma::Col neighbors; - arma::vec distances; // We need to store the distance too. + arma::Mat neighbors; + arma::mat distances; // We need to store the distance too. // Compute the neighbors. nn.Search(1, neighbors, distances);