[mlpack-git] master: Asleep at the wheel? (717fcf8)

gitdub at big.cc.gt.atl.ga.us gitdub at big.cc.gt.atl.ga.us
Tue Jan 13 11:16:54 EST 2015


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

On branch  : master
Link       : https://github.com/mlpack/mlpack/compare/9061d83c0b0068dec13ea80c6837b688b6321023...717fcf8610a0411e7067dd8634d8ffc873f51e3d

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

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

    Asleep at the wheel?


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

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