EcGen 1.1.8
Loading...
Searching...
No Matches
combin_old.hpp File Reference

Legacy combination generation (recursive, forward and reverse). More...

#include <py2cpp/recursive_gen.hpp>
#include <utility>
Include dependency graph for combin_old.hpp:

Go to the source code of this file.

Namespaces

namespace  ecgen

Functions

auto ecgen::emk_gen (int n, int k) -> py::RecursiveGenerator< std::pair< int, int > >
 Generate all k-combinations from n elements (recursive, forward order).
auto ecgen::emk_neg (int n, int k) -> py::RecursiveGenerator< std::pair< int, int > >
 Generate all k-combinations from n elements (recursive, reverse order).

Detailed Description

Legacy combination generation (recursive, forward and reverse).