Compute the factorial (uses precomputation to speed up run time querries). More...
Go to the source code of this file.
Namespaces | |
| namespace | bbm |
| namespace | bbm::precomputed |
Functions | |
| template<typename T = unsigned long long int> requires std::integral<T> || std::floating_point<T> | |
| consteval size_t | max_factorial (void) |
| Returns the largest possible factorial index for a given type that does not result in an overflow. | |
| template<typename T = unsigned long long int> | |
| constexpr T | factorial (size_t n) |
| Compute n! | |
Variables | |
| static constexpr auto | factorials |
Compute the factorial (uses precomputation to speed up run time querries).