feat: Add combinatoric indices utilitiy#5344
feat: Add combinatoric indices utilitiy#5344junggjo9 wants to merge 9 commits intoacts-project:mainfrom
Conversation
andiwand
left a comment
There was a problem hiding this comment.
My main concern is that we introduce new non-tracking utility with very targeted use but in the public versioned namespace while clients should not depend on it.
To understand this better:
- What is the use case for this?
- Does boost provide something we can use? Potentially Boost.Hana if we want to push this further into compile time
- STL has
std::next_permutationwhich could be used for something like this
Generally I believe we deal with ordered subsets in a couple of places but I didn't come across generating them yet. If we need this for future code in ACTS I would propose moving this into detail
|
I've not yet seen anything in boost which could provide this functionality, We'll need this to collapse the loop structure in the NSW segment finder from 4-> 1 loops. |
|
Permutation isn't neither what we want to do because the number elements themselves may change |
|
Actually we are not interested in permutations, we would like to generate unique combinations of elements as subsets of a bigger set. |
|



Add utility class to loop over all possibility to draw K elements from a set of N numbers
--- END COMMIT MESSAGE ---
Tagging: @andiwand, @dimitra97