[mlpack-git] master: Revert to older Armadillo syntax. (4379c33)

gitdub at big.cc.gt.atl.ga.us gitdub at big.cc.gt.atl.ga.us
Wed Apr 29 15:23:22 EDT 2015


Repository : https://github.com/mlpack/mlpack

On branch  : master
Link       : https://github.com/mlpack/mlpack/compare/e06ce8f3ac1170108c20c114e82cae10356d1301...4379c3398c5a3e6d59a53183445a5bb932506f01

>---------------------------------------------------------------

commit 4379c3398c5a3e6d59a53183445a5bb932506f01
Author: Ryan Curtin <ryan at ratml.org>
Date:   Wed Apr 29 15:23:13 2015 -0400

    Revert to older Armadillo syntax.


>---------------------------------------------------------------

4379c3398c5a3e6d59a53183445a5bb932506f01
 src/mlpack/methods/mean_shift/mean_shift_impl.hpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/mlpack/methods/mean_shift/mean_shift_impl.hpp b/src/mlpack/methods/mean_shift/mean_shift_impl.hpp
index 596b325..aafedd1 100644
--- a/src/mlpack/methods/mean_shift/mean_shift_impl.hpp
+++ b/src/mlpack/methods/mean_shift/mean_shift_impl.hpp
@@ -205,7 +205,7 @@ inline void MeanShift<UseKernel, KernelType, MatType>::Cluster(
          completedIterations++)
     {
       // Store new centroid in this.
-      arma::colvec newCentroid(pSeeds->n_rows, arma::fill::zeros);
+      arma::colvec newCentroid = arma::zeros<arma::colvec>(pSeeds->n_rows);
       
       rangeSearcher.Search(allCentroids.unsafe_col(i), validRadius,
           neighbors, distances);



More information about the mlpack-git mailing list