[mlpack-git] [mlpack] add a wrapper for the matrix completion SDP (#374)
Ryan Curtin
notifications at github.com
Fri Jan 9 17:07:51 EST 2015
> + const size_t n,
> + const size_t p)
> +{
> + const size_t mpn = m + n;
> + float r = 0.5 + sqrt(0.25 + 2 * p);
> + if (ceil(r) > mpn)
> + r = mpn; // An upper bound on the dimension.
> + return ceil(r);
> +}
> +
> +arma::mat MatrixCompletion::CreateInitialPoint(const size_t m,
> + const size_t n,
> + const size_t r)
> +{
> + const size_t mpn = m + n;
> + return arma::randu<arma::mat>(mpn, r);
Ah. Yes. I forgot about that constructor... no reason to templatize then.
---
Reply to this email directly or view it on GitHub:
https://github.com/mlpack/mlpack/pull/374/files#r22746823
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.cc.gatech.edu/pipermail/mlpack-git/attachments/20150109/85e7855b/attachment.html>
More information about the mlpack-git
mailing list