[mlpack-git] master: Fixes naming conventions of accessors (4773efb)

gitdub at mlpack.org gitdub at mlpack.org
Wed Jun 1 02:32:45 EDT 2016


Repository : https://github.com/mlpack/mlpack
On branch  : master
Link       : https://github.com/mlpack/mlpack/compare/eba4f9924694bc10daec74ff5059dbb8af001416...e3a23c256f017ebb8185b15847c82f51d359cdfd

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

commit 4773efbb117d2b56991d2b95fa5418ef1aa28fb6
Author: Yannis Mentekidis <mentekid at gmail.com>
Date:   Wed Jun 1 09:32:45 2016 +0300

    Fixes naming conventions of accessors


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

4773efbb117d2b56991d2b95fa5418ef1aa28fb6
 src/mlpack/methods/lsh/lsh_search.hpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

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




More information about the mlpack-git mailing list