[mlpack-git] master: Adds code that gives controllable access to LSH projection tables (934fe08)

gitdub at mlpack.org gitdub at mlpack.org
Tue May 31 16:20:41 EDT 2016


Repository : https://github.com/mlpack/mlpack
On branch  : master
Link       : https://github.com/mlpack/mlpack/compare/1f562a1aba7ae55475afcc95659511c2b7f694e5...5b8fdce471328f722fcd8c0f22a6d995ce22c98b

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

commit 934fe082230f7d8b8f9c3e9c1fe2f9fc25ea493e
Author: Yannis Mentekidis <mentekid at gmail.com>
Date:   Tue May 31 23:20:41 2016 +0300

    Adds code that gives controllable access to LSH projection tables


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

934fe082230f7d8b8f9c3e9c1fe2f9fc25ea493e
 src/mlpack/methods/lsh/lsh_search.hpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/mlpack/methods/lsh/lsh_search.hpp b/src/mlpack/methods/lsh/lsh_search.hpp
index 94ab452..f79b0cf 100644
--- a/src/mlpack/methods/lsh/lsh_search.hpp
+++ b/src/mlpack/methods/lsh/lsh_search.hpp
@@ -179,7 +179,7 @@ class LSHSearch
   const arma::Mat<size_t>& SecondHashTable() const { return secondHashTable; }
 
   //! Get the projection tables.
-  std::vector<arma::mat> getProjectionTables() { return projections; }
+  const std::vector<arma::mat> getProjectionTables() { return projections; }
 
   //! Change the projection tables (Retrains object)
   void setProjectionTables(std::vector<arma::mat> projTables)




More information about the mlpack-git mailing list