|
template<template< typename, typename... > class ContainerType, typename EleType , typename... Types> |
int | sgn (const ContainerType< EleType, Types... > &cntr) |
| Computes the inversion of a permutation. More...
|
|
template<typename SpanType , typename StartType , typename EndType > |
range_vector_t | split_range_span (SpanType min_span, StartType st, EndType ed) |
| Split range. More...
|
|
template<typename CountType , typename StartType , typename EndType > |
range_vector_t | split_range_count (CountType count, StartType st, EndType ed) |
|
template<typename Type1 , typename Type2 , typename ReturnType = unsigned long long> |
enable_if_all_in_list_t< types::type_list_t< Type1, Type2 >, integral_list_t, ReturnType > | ncr (Type1 nn, Type2 rr) |
|
template<typename Type1 , typename Type2 , typename ReturnType = unsigned long long> |
enable_if_all_in_list_t< types::type_list_t< Type1, Type2 >, integral_list_t, ReturnType > | npr (Type1 nn, Type2 rr) |
|
template<typename Type , typename ReturnType = unsigned long long> |
enable_if_in_list_t< Type, integral_list_t, ReturnType > | fact (Type n) |
|
template<template< typename, typename... > class SetContainer = std::vector, typename... ContainerTails, typename MthType = combination::m_th_t, typename EleType = int, typename SelectCountType = size_t, typename ReturnType = std::vector<EleType>> |
ReturnType | enumerate_combination (combination cmb, MthType m_th, SetContainer< EleType, ContainerTails... > from_set, SelectCountType select_count) |
|
template<template< typename, typename... > class ReturnContainer = std::vector, template< typename, typename... > class SetContainer = std::list, typename... ContainerTails, typename MthType = combination::m_th_t, typename EleType = int, typename SelectCountType = size_t, typename SetTagType = tpf::set_tag<ReturnContainer, EleType>, typename ReturnType = tpf::duet_set_t<SetTagType>> |
ReturnType | enumerate_combination_and_complement (combination cmb, MthType m_th, SetContainer< EleType, ContainerTails... > from_set, SelectCountType select_count) |
|
template<template< typename, typename... > class ReturnContainer = std::vector, typename MthType = combination::m_th_t, typename SetSizeType = size_t, typename SelectCountType = size_t, typename SetTagType = tpf::set_tag<ReturnContainer, int>, typename ReturnType = tpf::duet_set_t<SetTagType>> |
auto | enumerate_combination_and_complement (MthType m_th, SetSizeType set_size, SelectCountType select_count) |
|
template<template< typename, typename... > class ReturnContainer = std::vector, template< typename, typename... > class SetContainer = std::list, typename... ContainerTails, typename MthType = combination::m_th_t, typename EleType = int, typename SelectCountType = size_t, typename SetTagType = tpf::set_tag<ReturnContainer, EleType>, typename ReturnType = tpf::set_of_duets_t<SetTagType>> |
auto | enumerate_combinations_and_offsets (SetContainer< EleType, ContainerTails... > from_set, SelectCountType select_count=tpf::InvalidIndex) |
|
template<template< typename, typename... > class ReturnContainer = std::vector, typename MthType = combination::m_th_t, typename SelectCountType = size_t, typename SetTagType = tpf::set_tag<ReturnContainer, int>, typename ReturnType = tpf::duet_set_t<SetTagType>> |
ReturnType | enumerate_combinations_and_offsets_indices (combination cmb, MthType m_th, std::vector< int > from_set, SelectCountType select_count) |
|
template<template< typename, typename... > class ReturnContainer = std::vector, typename SetSizeType = size_t, typename SelectCountType = size_t, typename SetTagType = tpf::set_tag<ReturnContainer, int>, typename ReturnType = tpf::set_of_duets_t<SetTagType>> |
auto | enumerate_combinations_and_offsets_indices (SetSizeType set_size, SelectCountType select_count=tpf::InvalidIndex) |
|
template<template< typename, typename... > class ReturnContainer = std::vector, typename SetSizeType = size_t, typename SelectCountType = size_t, typename SetTagType = tpf::set_tag<ReturnContainer, int>, typename ReturnType = tpf::set_of_duets_t<SetTagType>> |
auto | enumerate_combination_including_indices (std::vector< int > include_set, SetSizeType set_size, SelectCountType select_count=tpf::InvalidIndex) |
|
template<template< typename, typename... > class ReturnContainer = std::vector, typename SetSizeType = size_t, typename SelectCountType = size_t, typename SetTagType = tpf::set_tag<ReturnContainer, int>, typename ReturnType = tpf::set_of_duets_t<SetTagType>> |
auto | enumerate_combination_excluding_indices (std::vector< int > exclude_set, SetSizeType set_size, SelectCountType select_count=tpf::InvalidIndex) |
|
template<typename RType , typename MType > |
std::vector< int > | enumerate_permutation (std::vector< int > e, RType r, MType m_th) |
|
template<typename T > |
std::vector< T > | enum_permutation (T n, T r, T m_th) |
|
template<typename T > |
std::vector< T > | enum_permutation_remainder (T n, T r, T m_th) |
|
template<typename PType , typename NRType , typename MType > |
std::vector< NRType > | enum_permutation_static (PType permu, NRType n, NRType r, MType m_th) |
|
template<typename T > |
std::vector< T > | enum_permutation_list (T n, T r, T mth) |
|
template<template< typename, typename... > class ReturnContainer = std::vector, template< typename, typename... > class SetContainer = std::list, typename... ContainerTails, typename MthType = unsigned long long, typename EleType = int, typename CountType = int> |
ReturnContainer< EleType > | enumerate_permutation (MthType m_th, SetContainer< EleType, ContainerTails... > from_set, CountType r) |
|