[mlpack-svn] [mlpack] add a test case for matrix sensing SDP (#373)

Stephen Tu notifications at github.com
Sun Jan 4 04:04:43 EST 2015


> +  data::Load("sensing_b.csv", bmat, true, false);
> +
> +  arma::vec b = bmat;
> +
> +  const size_t m = Xorig.n_rows;
> +  const size_t n = Xorig.n_cols;
> +  const size_t p = b.n_elem;
> +
> +  assert(A.n_rows == p);
> +  assert(A.n_cols == m * m);
> +
> +  float r = 0.5 + sqrt(0.25 + 2 * p);
> +  if (ceil(r) > m + n)
> +    r = m + n;
> +
> +  std::srand(0x0FAE8543);

I've done the same sin here as in #372. Let me update this with a deterministic starting point. 

---
Reply to this email directly or view it on GitHub:
https://github.com/mlpack/mlpack/pull/373/files#r22437709
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.cc.gatech.edu/pipermail/mlpack-git/attachments/20150104/59867995/attachment.html>


More information about the mlpack-git mailing list