[mlpack-git] [mlpack/mlpack] Universal B tree implementation (#746)
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:
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the mlpack-git