Skip to content

Add N(>2)-particle combinatorics, and an example implementing the ADL benchmarks

Pieter David requested to merge piedavid/bamboo:combineN_adlbenchmarks into master

I wanted to submit a bamboo implementation to the ADL benchmarks, but noticed that combinatorics with N>2 particles was not implemented, so added that (also a nice excuse to read up on parameter packs ;-) ).

Note: there is one API change, in op.combine the sameIdxPred keyword argument is replaced by samePred (since !70 (merged) getting the index is trivial); I don't think it was much used yet, and this allows to also make e.g. sorted combinations (I also made it more explicit in the documentation how this works).

Edited by Pieter David

Merge request reports