[mlpack-git] [mlpack/mlpack] Replaced SortStruct by std::pair (#721)

lozhnikov notifications at github.com
Tue Jul 12 08:53:07 EDT 2016


I replaced `SortStruct` by `std::pair` in the R* tree and the X tree and fixed some compiler warnings about uninitialized variables. I did some tests, `std::pair` provides some speedups in `mlpack_knn` for the R* tree and the X tree.
You can view, comment on, or merge this pull request online at:

  https://github.com/mlpack/mlpack/pull/721

-- Commit Summary --

  * Replace SortStruct by std::pair
  * Fix compiler warnings

-- File Changes --

    M src/mlpack/core/tree/rectangle_tree/r_plus_tree_split_impl.hpp (11)
    M src/mlpack/core/tree/rectangle_tree/r_star_tree_split.hpp (20)
    M src/mlpack/core/tree/rectangle_tree/r_star_tree_split_impl.hpp (266)
    M src/mlpack/core/tree/rectangle_tree/x_tree_split.hpp (21)
    M src/mlpack/core/tree/rectangle_tree/x_tree_split_impl.hpp (295)
    M src/mlpack/methods/adaboost/adaboost_impl.hpp (2)
    M src/mlpack/methods/ann/layer/one_hot_layer.hpp (2)
    M src/mlpack/methods/ann/layer/vr_class_reward_layer.hpp (2)
    M src/mlpack/methods/perceptron/perceptron_impl.hpp (2)
    M src/mlpack/methods/radical/radical.cpp (2)

-- Patch Links --

https://github.com/mlpack/mlpack/pull/721.patch
https://github.com/mlpack/mlpack/pull/721.diff

---
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/721
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.cc.gatech.edu/pipermail/mlpack-git/attachments/20160712/1c178150/attachment.html>


More information about the mlpack-git mailing list