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

stereomatchingkiss notifications at github.com
Thu Jun 9 11:23:05 EDT 2016


> +    z[k+1] = +INF;
> +  }
> +
> +  k = 0;
> +  for (int q = 0; q <= n-1; q++)
> +  {
> +    while (z[k+1] < q)
> +      k++;
> +    d[q] = (q - v[k]) * (q - v[k]) + f[v[k]];
> +  }
> +  return d;
> +}
> +
> +template<typename MatType, typename CubeType>
> +void StructuredForests<MatType, CubeType>::
> +dt_2d(MatType& im)

Nice candidate of const member function?

---
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#r66462232
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.cc.gatech.edu/pipermail/mlpack-git/attachments/20160609/1b9fd2fb/attachment-0001.html>


More information about the mlpack-git mailing list