MCPcopy Create free account
hub / github.com/davisking/dlib / short_fact

Function short_fact

dlib/test/bigint.cpp:25–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23 typename bint
24 >
25 bint short_fact (unsigned short value)
26 /*!
27 ensures
28 - returns the factorial of value
29 !*/
30 {
31 using namespace relational_operators;
32
33 bint a = 1;
34 for (unsigned short i = 2; i <= value; ++i)
35 a *= i;
36
37 return a;
38 }
39
40 template <
41 typename bint

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected