Function factorial¶
function factorial(int) math¶
constexpr uint64_t factorial(int n) { … } Returns the exact factorial of an argument.
Returns the precomputed exact value for n in [0, 20]. For negative n or n > 20 (values that do not fit in uint64_t) returns std::numeric_limits<uint64_t>::max().
| n | Non-negative integer argument. Negative values are treated as out of range and return the sentinel max value. |
| n! for 0 <= n <= 20, otherwise max(uint64_t). |
Fully qualified name: kfr::factorial(int)
Declared at math/gamma.hpp:105
This file was generated by cxxdox, a C++ documentation generator based on MkDocs Material and libclang.