[mlpack-git] master: Asleep at the wheel? (2d23dbe)

gitdub at big.cc.gt.atl.ga.us gitdub at big.cc.gt.atl.ga.us
Thu Mar 5 22:12:19 EST 2015


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

On branch  : master
Link       : https://github.com/mlpack/mlpack/compare/904762495c039e345beba14c1142fd719b3bd50e...f94823c800ad6f7266995c700b1b630d5ffdcf40

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

commit 2d23dbe88c954a6b756a94110e7130f7cb38c3eb
Author: Ryan Curtin <ryan at ratml.org>
Date:   Tue Jan 13 11:16:41 2015 -0500

    Asleep at the wheel?


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

2d23dbe88c954a6b756a94110e7130f7cb38c3eb
 src/mlpack/methods/matrix_completion/matrix_completion_impl.hpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/mlpack/methods/matrix_completion/matrix_completion_impl.hpp b/src/mlpack/methods/matrix_completion/matrix_completion_impl.hpp
index 12afff6..89dc737 100644
--- a/src/mlpack/methods/matrix_completion/matrix_completion_impl.hpp
+++ b/src/mlpack/methods/matrix_completion/matrix_completion_impl.hpp
@@ -99,7 +99,7 @@ size_t MatrixCompletion::DefaultRank(const size_t m,
   //   Pablo Moscato, Michael Norman, and Gabor Pataki.
   //   Math Oper. Res., 23(2). 1998.
   const size_t mpn = m + n;
-  const float r = 0.5 + sqrt(0.25 + 2 * p);
+  float r = 0.5 + sqrt(0.25 + 2 * p);
   if (ceil(r) > mpn)
     r = mpn; // An upper bound on the dimension.
   return ceil(r);



More information about the mlpack-git mailing list