[mlpack-svn] r10716 - mlpack/trunk/src/mlpack/core/tree
fastlab-svn at coffeetalk-1.cc.gatech.edu
fastlab-svn at coffeetalk-1.cc.gatech.edu
Mon Dec 12 05:33:51 EST 2011
Author: rcurtin
Date: 2011-12-12 05:33:50 -0500 (Mon, 12 Dec 2011)
New Revision: 10716
Modified:
mlpack/trunk/src/mlpack/core/tree/binary_space_tree_impl.hpp
Log:
We can use regular .col() here since we abstracted away arma::vec.
Modified: mlpack/trunk/src/mlpack/core/tree/binary_space_tree_impl.hpp
===================================================================
--- mlpack/trunk/src/mlpack/core/tree/binary_space_tree_impl.hpp 2011-12-12 10:15:30 UTC (rev 10715)
+++ mlpack/trunk/src/mlpack/core/tree/binary_space_tree_impl.hpp 2011-12-12 10:33:50 UTC (rev 10716)
@@ -374,7 +374,7 @@
// This should be a single function for Bound.
// We need to expand the bounds of this node properly.
for (size_t i = begin; i < (begin + count); i++)
- bound |= data.unsafe_col(i);
+ bound |= data.col(i);
// Now, check if we need to split at all.
if (count <= leafSize)
@@ -424,7 +424,7 @@
// This should be a single function for Bound.
// We need to expand the bounds of this node properly.
for (size_t i = begin; i < (begin + count); i++)
- bound |= data.unsafe_col(i);
+ bound |= data.col(i);
// First, check if we need to split at all.
if (count <= leafSize)
More information about the mlpack-svn
mailing list