{"action":"created","issue":{"url":"https://api.github.com/repos/root-project/root/issues/2327","repository_url":"https://api.github.com/repos/root-project/root","labels_url":"https://api.github.com/repos/root-project/root/issues/2327/labels{/name}","comments_url":"https://api.github.com/repos/root-project/root/issues/2327/comments","events_url":"https://api.github.com/repos/root-project/root/issues/2327/events","html_url":"https://github.com/root-project/root/pull/2327","id":341577741,"node_id":"MDExOlB1bGxSZXF1ZXN0MjAxNjgyNzE2","number":2327,"title":"[VecOps,RVec] Proposal for sorting utils","user":{"login":"stwunsch","id":6951222,"node_id":"MDQ6VXNlcjY5NTEyMjI=","avatar_url":"https://avatars1.githubusercontent.com/u/6951222?v=4","gravatar_id":"","url":"https://api.github.com/users/stwunsch","html_url":"https://github.com/stwunsch","followers_url":"https://api.github.com/users/stwunsch/followers","following_url":"https://api.github.com/users/stwunsch/following{/other_user}","gists_url":"https://api.github.com/users/stwunsch/gists{/gist_id}","starred_url":"https://api.github.com/users/stwunsch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stwunsch/subscriptions","organizations_url":"https://api.github.com/users/stwunsch/orgs","repos_url":"https://api.github.com/users/stwunsch/repos","events_url":"https://api.github.com/users/stwunsch/events{/privacy}","received_events_url":"https://api.github.com/users/stwunsch/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2018-07-16T15:55:38Z","updated_at":"2018-07-17T09:29:24Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/root-project/root/pulls/2327","html_url":"https://github.com/root-project/root/pull/2327","diff_url":"https://github.com/root-project/root/pull/2327.diff","patch_url":"https://github.com/root-project/root/pull/2327.patch"},"body":"Making a proposal to add utils for sorting of collections. The use-case is to get the indices of the largset/smallest elements of a vector, e.g., `Muon_pt` and retrieve a subset of other vectors from these, e.g., `Muon_eta`, ... . Already solved by @amadio in [this](https://root-forum.cern.ch/t/sort-struct-of-array-format-with-rvec/29485) forum post.\r\n\r\n```cpp\r\nroot [1] using namespace ROOT::VecOps;\r\nroot [2] RVec<float> x({3, 1, 2})\r\n(ROOT::VecOps::RVec<float> &) { 3, 1, 2 }\r\nroot [3] auto i = Argsort(x)\r\n(ROOT::VecOps::RVec<unsigned long> &) { 1, 2, 0 }\r\nroot [4] auto y = ByIndices(x, i)\r\n(ROOT::VecOps::RVec<float> &) { 1, 2, 3 }\r\n```\r\n\r\nFunctionalities and naming TBD."},"comment":{"url":"https://api.github.com/repos/root-project/root/issues/comments/405520062","html_url":"https://github.com/root-project/root/pull/2327#issuecomment-405520062","issue_url":"https://api.github.com/repos/root-project/root/issues/2327","id":405520062,"node_id":"MDEyOklzc3VlQ29tbWVudDQwNTUyMDA2Mg==","user":{"login":"phsft-bot","id":25639015,"node_id":"MDQ6VXNlcjI1NjM5MDE1","avatar_url":"https://avatars1.githubusercontent.com/u/25639015?v=4","gravatar_id":"","url":"https://api.github.com/users/phsft-bot","html_url":"https://github.com/phsft-bot","followers_url":"https://api.github.com/users/phsft-bot/followers","following_url":"https://api.github.com/users/phsft-bot/following{/other_user}","gists_url":"https://api.github.com/users/phsft-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/phsft-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phsft-bot/subscriptions","organizations_url":"https://api.github.com/users/phsft-bot/orgs","repos_url":"https://api.github.com/users/phsft-bot/repos","events_url":"https://api.github.com/users/phsft-bot/events{/privacy}","received_events_url":"https://api.github.com/users/phsft-bot/received_events","type":"User","site_admin":false},"created_at":"2018-07-17T09:29:24Z","updated_at":"2018-07-17T09:29:24Z","author_association":"COLLABORATOR","body":"Starting build on `slc6`/`gcc48`, `slc6-i686`/`gcc49`, `centos7`/`clang39`, `centos7`/`gcc62`, `centos7`/`gcc7`, `fedora28`/`native`, `ubuntu16`/`native`, `mac1013`/`native`, `windows10`/`vc15` with flags `-Dimt=ON -Dccache=ON`\n[How to customize builds](https://github.com/phsft-bot/build-configuration/blob/master/README.md)"}}
{"actor":{"display_login":"phsft-bot"}}