[mlpack-svn] r13128 - mlpack/trunk/src/mlpack/methods/sparse_coding
fastlab-svn at coffeetalk-1.cc.gatech.edu
fastlab-svn at coffeetalk-1.cc.gatech.edu
Fri Jun 29 12:37:24 EDT 2012
Author: rcurtin
Date: 2012-06-29 12:37:24 -0400 (Fri, 29 Jun 2012)
New Revision: 13128
Modified:
mlpack/trunk/src/mlpack/methods/sparse_coding/sparse_coding_impl.hpp
Log:
More consistent comparisons
Modified: mlpack/trunk/src/mlpack/methods/sparse_coding/sparse_coding_impl.hpp
===================================================================
--- mlpack/trunk/src/mlpack/methods/sparse_coding/sparse_coding_impl.hpp 2012-06-29 16:23:00 UTC (rev 13127)
+++ mlpack/trunk/src/mlpack/methods/sparse_coding/sparse_coding_impl.hpp 2012-06-29 16:37:24 UTC (rev 13128)
@@ -150,7 +150,7 @@
// Efficient construction of Z restricted to active atoms.
arma::mat matActiveZ;
- if (!inactiveAtoms.empty())
+ if (nInactiveAtoms > 0)
{
arma::uvec inactiveAtomsVec =
arma::conv_to<arma::uvec>::from(inactiveAtoms);
More information about the mlpack-svn
mailing list