EcGen
1.1.8
Loading...
Searching...
No Matches
set_bipart.hpp
Go to the documentation of this file.
1
18
19
#pragma once
20
21
#include <py2cpp/recursive_gen.hpp>
22
#include <type_traits>
// for integral_constant
23
24
namespace
ecgen
{
25
49
template
<
int
N>
constexpr
auto
Stirling2nd2
() {
50
if
constexpr
(N <= 2) {
51
return
std::integral_constant<size_t, 1U>{};
52
}
else
{
53
return
std::integral_constant<size_t, 1U + 2 *
Stirling2nd2
<N - 1>()>{};
54
}
55
}
56
72
extern
auto
set_bipart_gen
(
int
n) -> py::RecursiveGenerator<int>;
73
74
}
// namespace ecgen
ecgen
Definition
combin.hpp:13
ecgen::set_bipart_gen
auto set_bipart_gen(int n) -> py::RecursiveGenerator< int >
ecgen::Stirling2nd2
constexpr auto Stirling2nd2()
Compute Stirling numbers of the second kind S(N,2).
Definition
set_bipart.hpp:49
ecgen
set_bipart.hpp
Generated by
1.15.0