9using set_t = std::vector<element_t>;
13 if(r == 0 || S.empty())
20 auto quotient = m_th / n_1_p_r_1;
23 R.push_back ( S[quotient] );
27 S.erase(S.begin() + quotient);
38 std::iota(S.begin(), S.end(), 1);
44 for(
size_t m_th = 0; m_th < max_m_th; ++m_th)
50 stream <<
" m_th -> " << std::setw(3) << m_th <<
" : "
void build_permutation(set_t S, set_t &R, size_t r, size_t m_th)
void test_permutations(size_t n, size_t r)
std::deque< element_t > set_t
enable_if_all_in_list_t< types::type_list_t< Type1, Type2 >, integral_list_t, ReturnType > npr(Type1 nn, Type2 rr)
Stream output operators << are implemented.