[mlpack-git] master: function signature changed (3d5efcc)

gitdub at mlpack.org gitdub at mlpack.org
Mon Sep 19 13:02:44 EDT 2016


Repository : https://github.com/mlpack/mlpack
On branch  : master
Link       : https://github.com/mlpack/mlpack/compare/045c16afa6fff8520722bbf19d98312e0eb24532...635238ba763335f6708b5560ae6606b008fdd609

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

commit 3d5efcc6b2308d470dc7056fa0d249632c0dcab1
Author: Anuraj Kanodia <akanuraj200 at gmail.com>
Date:   Mon Sep 19 22:32:44 2016 +0530

    function signature changed
    
    Replaced `MinDistance(TreeType*)` with `MinDistance(TreeType&)`


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

3d5efcc6b2308d470dc7056fa0d249632c0dcab1
 src/mlpack/core/tree/spill_tree/spill_tree.hpp | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/src/mlpack/core/tree/spill_tree/spill_tree.hpp b/src/mlpack/core/tree/spill_tree/spill_tree.hpp
index 1e5bc1e..305cf23 100644
--- a/src/mlpack/core/tree/spill_tree/spill_tree.hpp
+++ b/src/mlpack/core/tree/spill_tree/spill_tree.hpp
@@ -368,21 +368,21 @@ class SpillTree
   size_t Point(const size_t index) const;
 
   //! Return the minimum distance to another node.
-  ElemType MinDistance(const SpillTree* other) const
+  ElemType MinDistance(const SpillTree& other) const
   {
-    return bound.MinDistance(other->Bound());
+    return bound.MinDistance(other.Bound());
   }
 
   //! Return the maximum distance to another node.
-  ElemType MaxDistance(const SpillTree* other) const
+  ElemType MaxDistance(const SpillTree& other) const
   {
-    return bound.MaxDistance(other->Bound());
+    return bound.MaxDistance(other.Bound());
   }
 
   //! Return the minimum and maximum distance to another node.
-  math::RangeType<ElemType> RangeDistance(const SpillTree* other) const
+  math::RangeType<ElemType> RangeDistance(const SpillTree& other) const
   {
-    return bound.RangeDistance(other->Bound());
+    return bound.RangeDistance(other.Bound());
   }
 
   //! Return the minimum distance to another point.




More information about the mlpack-git mailing list