[mlpack-git] master: Allow access to naive. (2865496)

gitdub at big.cc.gt.atl.ga.us gitdub at big.cc.gt.atl.ga.us
Tue Dec 22 18:34:41 EST 2015


Repository : https://github.com/mlpack/mlpack

On branch  : master
Link       : https://github.com/mlpack/mlpack/compare/eb41f4bc27b484c347acc006255104e2f8cc4eef...977afbec0648056124dcb206e0bf972a161d9b51

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

commit 2865496c688a40af90c24181ae88a5fb4f979174
Author: ryan <ryan at ratml.org>
Date:   Tue Dec 22 18:07:13 2015 -0500

    Allow access to naive.


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

2865496c688a40af90c24181ae88a5fb4f979174
 src/mlpack/methods/fastmks/fastmks.hpp | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/mlpack/methods/fastmks/fastmks.hpp b/src/mlpack/methods/fastmks/fastmks.hpp
index cf87c8c..3a73efc 100644
--- a/src/mlpack/methods/fastmks/fastmks.hpp
+++ b/src/mlpack/methods/fastmks/fastmks.hpp
@@ -213,6 +213,11 @@ class FastMKS
   //! Modify whether or not single-tree search is used.
   bool& SingleMode() { return singleMode; }
 
+  //! Get whether or not brute-force (naive) search is used.
+  bool Naive() const { return naive; }
+  //! Modify whether or not brute-force (naive) search is used.
+  bool& Naive() { return naive; }
+
   //! Serialize the model.
   template<typename Archive>
   void Serialize(Archive& ar, const unsigned int /* version */);



More information about the mlpack-git mailing list