[mlpack-git] master: binary_space_tree_impl.hpp #787 fix (d168ee1)
gitdub at mlpack.org
gitdub at mlpack.org
Mon Sep 19 08:46:08 EDT 2016
Repository : https://github.com/mlpack/mlpack
On branch : master
Link : https://github.com/mlpack/mlpack/compare/045c16afa6fff8520722bbf19d98312e0eb24532...635238ba763335f6708b5560ae6606b008fdd609
>---------------------------------------------------------------
commit d168ee1e2157ffe09598675dc98a52191a855398
Author: Anuraj Kanodia <akanuraj200 at gmail.com>
Date: Mon Sep 19 18:16:08 2016 +0530
binary_space_tree_impl.hpp #787 fix
refactored code as per #787
>---------------------------------------------------------------
d168ee1e2157ffe09598675dc98a52191a855398
src/mlpack/core/tree/binary_space_tree/binary_space_tree_impl.hpp | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/mlpack/core/tree/binary_space_tree/binary_space_tree_impl.hpp b/src/mlpack/core/tree/binary_space_tree/binary_space_tree_impl.hpp
index 7ffb569..ecc3398 100644
--- a/src/mlpack/core/tree/binary_space_tree/binary_space_tree_impl.hpp
+++ b/src/mlpack/core/tree/binary_space_tree/binary_space_tree_impl.hpp
@@ -554,8 +554,8 @@ size_t BinarySpaceTree<MetricType, StatisticType, MatType, BoundType,
if (IsLeaf() || !left || !right)
return 0;
- ElemType leftDist = left->MinDistance(&queryNode);
- ElemType rightDist = right->MinDistance(&queryNode);
+ ElemType leftDist = left->MinDistance(*queryNode);
+ ElemType rightDist = right->MinDistance(*queryNode);
if (leftDist < rightDist)
return 0;
if (rightDist < leftDist)
@@ -579,8 +579,8 @@ size_t BinarySpaceTree<MetricType, StatisticType, MatType, BoundType,
if (IsLeaf() || !left || !right)
return 0;
- ElemType leftDist = left->MaxDistance(&queryNode);
- ElemType rightDist = right->MaxDistance(&queryNode);
+ ElemType leftDist = left->MaxDistance(*queryNode);
+ ElemType rightDist = right->MaxDistance(*queryNode);
if (leftDist > rightDist)
return 0;
if (rightDist > leftDist)
More information about the mlpack-git
mailing list