52int main(
int argc,
char* argv[])
56 auto thread_count = atoi(argv[1]) * std::thread::hardware_concurrency();
57 auto n = atoi(argv[2]);
58 auto r = atoi(argv[3]);
63 stream <<
"Computing "<< n <<
"_P_" << r <<
" = "
69 catch(
const std::exception&)
int main(int argc, char *argv[])
void examples_for_build_permutations_flat(unsigned thread_count, int n, int r)
void examples_for_build_permutations(unsigned thread_count, int n, int r)
std::deque< element_t > set_t
std::deque< set_t > sets_t
std::string elapsed_time(bool bReset=true, TimeUnit dummy_time=TimeUnit{}) const
Implements random number generator and stop watch.
enable_if_all_in_list_t< types::type_list_t< Type1, Type2 >, integral_list_t, ReturnType > npr(Type1 nn, Type2 rr)
void build_permutations(ContainerType< EleType, Types... > &L, ContainerType< EleType, Types... > &R, size_t r)
Implements set operations.
auto build_permutations_flat(ThreadCountType thread_count, NType n, RType r)
Type to string name conversions are defined.
typename SetTagType::set_t set_t
typename SetTagType::sets_t sets_t
std::atomic< int > thread_count
Stream output operators << are implemented.
Implements set operations.