[mlpack] 28/53: Fix invalid access.

Barak A. Pearlmutter barak+git at pearlmutter.net
Mon Nov 14 00:46:48 UTC 2016


This is an automated email from the git hooks/post-receive script.

bap pushed a commit to branch master
in repository mlpack.

commit 1795d726eb9eb83d357dbbdc5fb013c929d263f1
Author: Ryan Curtin <ryan at ratml.org>
Date:   Tue Oct 25 04:04:19 2016 -0400

    Fix invalid access.
---
 src/mlpack/methods/approx_kfn/qdafn_impl.hpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/mlpack/methods/approx_kfn/qdafn_impl.hpp b/src/mlpack/methods/approx_kfn/qdafn_impl.hpp
index f1d04fa..9220989 100644
--- a/src/mlpack/methods/approx_kfn/qdafn_impl.hpp
+++ b/src/mlpack/methods/approx_kfn/qdafn_impl.hpp
@@ -49,7 +49,7 @@ QDAFN<MatType>::QDAFN(const MatType& referenceSet,
     {
       sIndices(j, i) = sortedIndices[j];
       sValues(j, i) = projections(sortedIndices[j], i);
-      candidateSet.slice(l).col(j) = referenceSet.col(sortedIndices[j]);
+      candidateSet.slice(i).col(j) = referenceSet.col(sortedIndices[j]);
     }
   }
 }

-- 
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