[mlpack-git] master: Fix types in example code. (84a940d)

gitdub at mlpack.org gitdub at mlpack.org
Mon Oct 17 14:58:02 EDT 2016


Repository : https://github.com/mlpack/mlpack
On branch  : master
Link       : https://github.com/mlpack/mlpack/compare/5aa60657013edaf758f02c04f615468ee218cfb7...84a940db9d227a0cf094e93e526b902da1bb4e75

>---------------------------------------------------------------

commit 84a940db9d227a0cf094e93e526b902da1bb4e75
Author: Ryan Curtin <ryan at ratml.org>
Date:   Mon Oct 17 14:57:50 2016 -0400

    Fix types in example code.


>---------------------------------------------------------------

84a940db9d227a0cf094e93e526b902da1bb4e75
 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 c54f52b..16cc2fb 100644
--- a/doc/guide/sample.hpp
+++ b/doc/guide/sample.hpp
@@ -60,8 +60,8 @@ int main()
   NeighborSearch<NearestNeighborSort, ManhattanDistance> nn(data);
 
   // Create the object we will store the nearest neighbors in.
-  arma::Col<size_t> neighbors;
-  arma::vec distances; // We need to store the distance too.
+  arma::Mat<size_t> neighbors;
+  arma::mat distances; // We need to store the distance too.
 
   // Compute the neighbors.
   nn.Search(1, neighbors, distances);




More information about the mlpack-git mailing list