![]() |
C++ Library Extensions 2022.12.09
To help learn modern C++ programming
|
Classes | |
| class | rational |
Concepts | |
| concept | real_number_c |
| concept | allowed_type_c |
| concept | number_c |
Typedefs | |
| using | real_number_list = types::type_container< float, double, long double > |
| using | allowed_type_list = types::type_container< char, signed char, unsigned char, short, unsigned short, int, unsigned int, long, unsigned long, long long, unsigned long long > |
| using | numerical_type_list = types::type_container< char, unsigned char, short, unsigned short, int, unsigned int, long, unsigned long, long long, unsigned long long, float, double, long double > |
Functions | |
| template<allowed_type_c ElementType> | |
| constexpr ElementType | reduce_adjusted (ElementType &A, ElementType &B) noexcept |
| template<allowed_type_c ElementType> | |
| constexpr ElementType | reduce_simple (ElementType &A, ElementType &B) noexcept |
| template<allowed_type_c T> | |
| constexpr bool | tell_comparable_as_double () |
| template<allowed_type_c L, allowed_type_c R> requires ( !std::same_as<L, R>) | |
| std::strong_ordering | operator<=> (rational< L > const &lhs, rational< R > const &rhs) |
| template<allowed_type_c L, allowed_type_c R> requires ( !std::same_as<L, R>) | |
| std::strong_ordering | operator<=> (rational< L > const &lhs, R rhs) |
| template<allowed_type_c L, real_number_c R> | |
| std::strong_ordering | operator<=> (rational< L > const &lhs, R rhs) |
| template<allowed_type_c L, allowed_type_c R> requires ( !std::same_as<L, R>) | |
| bool | operator== (rational< L > const &lhs, rational< R > const &rhs) |
| template<allowed_type_c L, allowed_type_c R> requires ( !std::same_as<L, R>) | |
| bool | operator== (rational< L > const &lhs, R rhs) |
| template<allowed_type_c L, real_number_c R> | |
| bool | operator== (rational< L > const &lhs, R rhs) |
| auto | factorial (unsigned long long n) noexcept |
| auto | nPr (unsigned long long n, unsigned long long r=1) noexcept |
| auto | nCr (unsigned long long n, unsigned long long r) noexcept |
Variables | |
| const std::vector< unsigned long long > | factorial_table |
| const std::vector< std::vector< unsigned long long > > | permutation_table |
| const std::vector< std::vector< unsigned long long > > | combination_table |
| using cpg::rational_number::allowed_type_list = typedef types::type_container<char, signed char, unsigned char, short, unsigned short, int, unsigned int, long, unsigned long, long long, unsigned long long> |
Definition at line 55 of file cpg_rational.hpp.
| using cpg::rational_number::numerical_type_list = typedef types::type_container<char, unsigned char, short, unsigned short, int, unsigned int, long, unsigned long, long long, unsigned long long, float, double, long double> |
Definition at line 65 of file cpg_rational.hpp.
| using cpg::rational_number::real_number_list = typedef types::type_container<float, double, long double> |
Definition at line 48 of file cpg_rational.hpp.
|
noexcept |
Definition at line 909 of file cpg_rational.hpp.
|
noexcept |
Definition at line 958 of file cpg_rational.hpp.
|
noexcept |
| std::strong_ordering cpg::rational_number::operator<=> | ( | rational< L > const & | lhs, |
| R | rhs | ||
| ) |
Definition at line 734 of file cpg_rational.hpp.
| std::strong_ordering cpg::rational_number::operator<=> | ( | rational< L > const & | lhs, |
| R | rhs | ||
| ) |
Definition at line 745 of file cpg_rational.hpp.
| std::strong_ordering cpg::rational_number::operator<=> | ( | rational< L > const & | lhs, |
| rational< R > const & | rhs | ||
| ) |
Definition at line 722 of file cpg_rational.hpp.
| bool cpg::rational_number::operator== | ( | rational< L > const & | lhs, |
| R | rhs | ||
| ) |
Definition at line 772 of file cpg_rational.hpp.
| bool cpg::rational_number::operator== | ( | rational< L > const & | lhs, |
| R | rhs | ||
| ) |
Definition at line 783 of file cpg_rational.hpp.
| bool cpg::rational_number::operator== | ( | rational< L > const & | lhs, |
| rational< R > const & | rhs | ||
| ) |
Definition at line 760 of file cpg_rational.hpp.
|
constexprnoexcept |
Definition at line 77 of file cpg_rational.hpp.
|
constexprnoexcept |
Definition at line 100 of file cpg_rational.hpp.
|
constexpr |
Definition at line 116 of file cpg_rational.hpp.
| const std::vector<std::vector<unsigned long long> > cpg::rational_number::combination_table |
Definition at line 793 of file permu_combi_table.cxx.
| const std::vector<unsigned long long> cpg::rational_number::factorial_table |
Definition at line 5 of file permu_combi_table.cxx.
| const std::vector<std::vector<unsigned long long> > cpg::rational_number::permutation_table |
Definition at line 31 of file permu_combi_table.cxx.