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

stereomatchingkiss notifications at github.com
Thu Jun 9 11:28:30 EDT 2016


> +      = InImage.slice(i).col(left - 1 - j);
> +    }
> +
> +    for(int j = 0; j < top; j++)
> +    {
> +
> +      OutImage.slice(i).row(j)
> +      = OutImage.slice(i).row(2 * top - 1 - j);
> +    }
> +     
> +    for(int j = 0; j < bottom; j++)
> +    {
> +      OutImage.slice(i).row(InImage.n_rows + top + j)
> +      = OutImage.slice(i).row(InImage.n_rows + top - j - 1);
> +    }
> +

same here, if possible, please use size_t

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


More information about the mlpack-git mailing list