[mlpack-git] master: Minor style and grammar fixes. (10ebcc3)

gitdub at mlpack.org gitdub at mlpack.org
Wed Aug 31 08:37:09 EDT 2016


Repository : https://github.com/mlpack/mlpack
On branch  : master
Link       : https://github.com/mlpack/mlpack/compare/96dc228a1cf7077e3ec00e420a62edec3b10daac...d16d24f8675f17234087e9cbf0361c9914c656cb

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

commit 10ebcc3053e9f3c520947a46e904efc226b3b46c
Author: Ryan Curtin <ryan at ratml.org>
Date:   Wed Aug 31 08:37:09 2016 -0400

    Minor style and grammar fixes.


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

10ebcc3053e9f3c520947a46e904efc226b3b46c
 src/mlpack/core/tree/address.hpp        | 8 ++------
 src/mlpack/core/tree/cellbound_impl.hpp | 3 +--
 2 files changed, 3 insertions(+), 8 deletions(-)

diff --git a/src/mlpack/core/tree/address.hpp b/src/mlpack/core/tree/address.hpp
index 9fe3897..bf183e2 100644
--- a/src/mlpack/core/tree/address.hpp
+++ b/src/mlpack/core/tree/address.hpp
@@ -27,9 +27,7 @@
 #define MLPACK_CORE_TREE_ADDRESS_HPP
 
 namespace mlpack {
-
 namespace bound {
-
 namespace addr {
 
 /**
@@ -230,8 +228,8 @@ template<typename AddressType1, typename AddressType2>
 int CompareAddresses(const AddressType1& addr1, const AddressType2& addr2)
 {
   static_assert(std::is_same<typename AddressType1::elem_type,
-      typename AddressType2::elem_type>::value == true, "We aren't able to "
-      "compare adresses of distinct types");
+      typename AddressType2::elem_type>::value == true, "Can't compare "
+      "addresses of distinct types");
 
   assert(addr1.n_elem == addr2.n_elem);
 
@@ -258,9 +256,7 @@ bool Contains(const AddressType1& address, const AddressType2& loBound,
 }
 
 } // namespace addr
-
 } // namespace bound
-
 } // namespave mlpack
 
 #endif // MLPACK_CORE_TREE_ADDRESS_HPP
diff --git a/src/mlpack/core/tree/cellbound_impl.hpp b/src/mlpack/core/tree/cellbound_impl.hpp
index ce6de2a..242699c 100644
--- a/src/mlpack/core/tree/cellbound_impl.hpp
+++ b/src/mlpack/core/tree/cellbound_impl.hpp
@@ -197,11 +197,10 @@ void CellBound<MetricType, ElemType>::AddBound(
     if (k < dim)
       continue; // The point is not contained in the hyperrectangle.
 
-    // Srink the bound.
+    // Shrink the bound.
     for (k = 0; k < dim; k++)
     {
       loBound(k, numBounds) = std::min(loBound(k, numBounds), data(k, i));
-
       hiBound(k, numBounds) = std::max(hiBound(k, numBounds), data(k, i));
     }
   }




More information about the mlpack-git mailing list