From 84a940db9d227a0cf094e93e526b902da1bb4e75 Mon Sep 17 00:00:00 2001 From: Ryan Curtin Date: Mon, 17 Oct 2016 14:57:50 -0400 Subject: [PATCH] Fix types in example code. --- doc/guide/sample.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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);