[mlpack] 73/324: bug fix. had n_rows when I needed n_cols
Barak A. Pearlmutter
barak+git at cs.nuim.ie
Sun Aug 17 08:21:57 UTC 2014
This is an automated email from the git hooks/post-receive script.
bap pushed a commit to branch svn-trunk
in repository mlpack.
commit 3b6525e27d7ad541537c182d05adefb903074aba
Author: andrewmw94 <andrewmw94 at 9d5b8971-822b-0410-80eb-d18c1038ef23>
Date: Tue Jun 24 16:07:18 2014 +0000
bug fix. had n_rows when I needed n_cols
git-svn-id: http://svn.cc.gatech.edu/fastlab/mlpack/trunk@16704 9d5b8971-822b-0410-80eb-d18c1038ef23
---
src/mlpack/core/tree/rectangle_tree/rectangle_tree_impl.hpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/mlpack/core/tree/rectangle_tree/rectangle_tree_impl.hpp b/src/mlpack/core/tree/rectangle_tree/rectangle_tree_impl.hpp
index 1624109..c5a0ed7 100644
--- a/src/mlpack/core/tree/rectangle_tree/rectangle_tree_impl.hpp
+++ b/src/mlpack/core/tree/rectangle_tree/rectangle_tree_impl.hpp
@@ -50,7 +50,7 @@ RectangleTree<SplitType, DescentType, StatisticType, MatType>::RectangleTree(
RectangleTree* root = this;
//for(int i = firstDataIndex; i < 57; i++) { // 56,57 are the bound for where it works/breaks
- for(int i = firstDataIndex; i < data.n_rows; i++) {
+ for(int i = firstDataIndex; i < data.n_cols; i++) {
std::cout << "inserting point number: " << i << std::endl;
root->InsertPoint(data.col(i));
std::cout << "finished inserting point number: " << i << std::endl;
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/mlpack.git
More information about the debian-science-commits
mailing list