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

Nilay Jain notifications at github.com
Thu Jun 9 13:11:38 EDT 2016


> +  }
> +}
> +
> +//just a helper function, can't use it for anything else
> +//finds max numbers on cube axis and returns max values,
> +// also stores the locations of max values in Location
> +template<typename MatType, typename CubeType>
> +MatType StructuredForests<MatType, CubeType>::
> +MaxAndLoc(CubeType& mag, arma::umat& Location)
> +{
> +  MatType MaxVal(Location.n_rows, Location.n_cols);
> +  for(size_t i = 0; i < mag.n_rows; ++i)
> +  {
> +    for(size_t j = 0; j < mag.n_cols; ++j)
> +    {
> +      double max = -9999999999.0; int max_loc = 0;

It is unused and can be removed.

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


More information about the mlpack-git mailing list