[mlpack] 16/53: Fix types in example code.

Barak A. Pearlmutter barak+git at pearlmutter.net
Mon Nov 14 00:46:47 UTC 2016


This is an automated email from the git hooks/post-receive script.

bap pushed a commit to branch master
in repository mlpack.

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

    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 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);

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/mlpack.git



More information about the debian-science-commits mailing list