[mlpack-svn] r17184 - mlpack/trunk/src/mlpack/core/tree/rectangle_tree

fastlab-svn at coffeetalk-1.cc.gatech.edu fastlab-svn at coffeetalk-1.cc.gatech.edu
Tue Sep 16 16:33:00 EDT 2014


Author: rcurtin
Date: Tue Sep 16 16:33:00 2014
New Revision: 17184

Log:
I fixed a little bit, but I know this doesn't fix everything.


Modified:
   mlpack/trunk/src/mlpack/core/tree/rectangle_tree/x_tree_split_impl.hpp

Modified: mlpack/trunk/src/mlpack/core/tree/rectangle_tree/x_tree_split_impl.hpp
==============================================================================
--- mlpack/trunk/src/mlpack/core/tree/rectangle_tree/x_tree_split_impl.hpp	(original)
+++ mlpack/trunk/src/mlpack/core/tree/rectangle_tree/x_tree_split_impl.hpp	Tue Sep 16 16:33:00 2014
@@ -707,7 +707,8 @@
         RectangleTree<XTreeSplit<DescentType, StatisticType, MatType>, DescentType, StatisticType, MatType>* srcNode)
 {
   destTree->Bound() |= srcNode->Bound();
-  destTree->Children()[destTree->NumChildren()++] = srcNode;
+  destTree->Children().push_back(srcNode);
+  destTree->NumChildren()++;
 }
 
 }; // namespace tree



More information about the mlpack-svn mailing list