[mlpack-git] master: Allow access to 'naive'. (24f0dde)
gitdub at big.cc.gt.atl.ga.us
gitdub at big.cc.gt.atl.ga.us
Thu Jul 16 12:16:32 EDT 2015
Repository : https://github.com/mlpack/mlpack
On branch : master
Link : https://github.com/mlpack/mlpack/compare/b4659b668021db631b3c8a48e3d735b513706fdc...015d79104286231ef70ea0ba1d99a6c397025b3e
>---------------------------------------------------------------
commit 24f0dde5b4e4b3b53549a73637f5248549e4c6b5
Author: Ryan Curtin <ryan at ratml.org>
Date: Mon Jul 13 10:59:39 2015 +0000
Allow access to 'naive'.
>---------------------------------------------------------------
24f0dde5b4e4b3b53549a73637f5248549e4c6b5
src/mlpack/methods/neighbor_search/neighbor_search.hpp | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/src/mlpack/methods/neighbor_search/neighbor_search.hpp b/src/mlpack/methods/neighbor_search/neighbor_search.hpp
index de81408..d7a1040 100644
--- a/src/mlpack/methods/neighbor_search/neighbor_search.hpp
+++ b/src/mlpack/methods/neighbor_search/neighbor_search.hpp
@@ -183,6 +183,11 @@ class NeighborSearch
//! Modify the number of node combination scores.
size_t& Scores() { return scores; }
+ //! Access whether or not search is done in naive linear scan mode.
+ bool Naive() const { return naive; }
+ //! Modify whether or not search is done in naive linear scan mode.
+ bool& Naive() { return naive; }
+
//! Access whether or not search is done in single-tree mode.
bool SingleMode() const { return singleMode; }
//! Modify whether or not search is done in single-tree mode.
More information about the mlpack-git
mailing list