[mlpack-git] master: function signature changed (f6c106d)
gitdub at mlpack.org
gitdub at mlpack.org
Mon Sep 19 12:47:43 EDT 2016
Repository : https://github.com/mlpack/mlpack
On branch : master
Link : https://github.com/mlpack/mlpack/compare/045c16afa6fff8520722bbf19d98312e0eb24532...635238ba763335f6708b5560ae6606b008fdd609
>---------------------------------------------------------------
commit f6c106de66a4f74796f4b22af9415c007b68ddd9
Author: Anuraj Kanodia <akanuraj200 at gmail.com>
Date: Mon Sep 19 22:17:43 2016 +0530
function signature changed
Replaced `MinDistance(TreeType*)` with `MinDistance(TreeType&)`
>---------------------------------------------------------------
f6c106de66a4f74796f4b22af9415c007b68ddd9
src/mlpack/core/tree/rectangle_tree/rectangle_tree.hpp | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/src/mlpack/core/tree/rectangle_tree/rectangle_tree.hpp b/src/mlpack/core/tree/rectangle_tree/rectangle_tree.hpp
index 8f5e752..129000f 100644
--- a/src/mlpack/core/tree/rectangle_tree/rectangle_tree.hpp
+++ b/src/mlpack/core/tree/rectangle_tree/rectangle_tree.hpp
@@ -463,21 +463,21 @@ class RectangleTree
size_t& Point(const size_t index) { return points[index]; }
//! Return the minimum distance to another node.
- ElemType MinDistance(const RectangleTree* other) const
+ ElemType MinDistance(const RectangleTree& other) const
{
- return bound.MinDistance(other->Bound());
+ return bound.MinDistance(other.Bound());
}
//! Return the maximum distance to another node.
- ElemType MaxDistance(const RectangleTree* other) const
+ ElemType MaxDistance(const RectangleTree& 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 RectangleTree* other) const
+ math::RangeType<ElemType> RangeDistance(const RectangleTree& 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