[mlpack-git] [mlpack/mlpack] Universal B tree implementation (#746)

lozhnikov notifications at github.com
Thu Aug 25 11:58:29 EDT 2016


> +      size_t oldI = newToOld[i];
> +      size_t newIndex = newFromOld[index];
> +
> +      data.swap_cols(i, newFromOld[index]);
> +
> +      size_t tmp = newFromOld[index];
> +      newFromOld[index] = i;
> +      newFromOld[oldI] = tmp;
> +
> +      tmp = newToOld[i];
> +      newToOld[i] = newToOld[newIndex];
> +      newToOld[newIndex] = tmp;
> +
> +      tmp = oldFromNew[i];
> +      oldFromNew[i] = oldFromNew[newIndex];
> +      oldFromNew[newIndex] = tmp;

Yeah; First time I had used `oldFromNew` instead of `newToOld`. But then I had thought that the dataset can be rearranged before the tree construction (that never happens right now).

-- 
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/746/files/f17843fc8e8ef2b1c4b04d572c521575f20a1f3c#r76271944
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.cc.gatech.edu/pipermail/mlpack-git/attachments/20160825/e4ead7bf/attachment.html>


More information about the mlpack-git mailing list