EcGen 1.1.8
Loading...
Searching...
No Matches
combin_old.hpp
Go to the documentation of this file.
1
5
6#pragma once
7
8#include <py2cpp/recursive_gen.hpp>
9// #include <type_traits> // for integral_constant
10#include <utility> // for pair
11
12namespace ecgen {
13
25 extern auto emk_gen(int n, int k) -> py::RecursiveGenerator<std::pair<int, int>>;
26
39 extern auto emk_neg(int n, int k) -> py::RecursiveGenerator<std::pair<int, int>>;
40
41} // namespace ecgen
Definition combin.hpp:13
auto emk_neg(int n, int k) -> py::RecursiveGenerator< std::pair< int, int > >
Generate all k-combinations from n elements (recursive, reverse order).
auto emk_gen(int n, int k) -> py::RecursiveGenerator< std::pair< int, int > >
Generate all k-combinations from n elements (recursive, forward order).