[mlpack-git] [mlpack/mlpack] backported ind2sub and sub2ind. (#683)

Nilay Jain notifications at github.com
Thu Jun 9 13:17:57 EDT 2016


> +  y0 = 8.0 / a;
> +  maxi = 1.0 / 270.0;
> +
> +  arma::vec table(1025);
> +  for (size_t i = 0; i < 1025; ++i)
> +  {
> +    table(i) = i / 1024.0;
> +    
> +    if (table(i) > y0)
> +      table(i) = 116 * pow(table(i), 1.0/3.0) - 16.0;
> +    else
> +      table(i) = table(i) * a;
> +
> +    table(i) = table(i) * maxi;
> +  }
> +

Yes I will see to this and rectify it

---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/mlpack/mlpack/pull/683/files/9d85b64c6c6bdff608331195351d09abf56cfc96#r66482913
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.cc.gatech.edu/pipermail/mlpack-git/attachments/20160609/05f0b5a4/attachment-0001.html>


More information about the mlpack-git mailing list