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

Function short_fact_squared

dlib/test/bigint.cpp:43–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41 typename bint
42 >
43 bint short_fact_squared (unsigned short value)
44 /*!
45 ensures
46 - returns the square of the factorial of value
47 !*/
48 {
49 using namespace relational_operators;
50
51 bint a = 1;
52 for (unsigned short i = 2; i <= value; ++i)
53 {
54 a *= i;
55 a *= i;
56 }
57
58 return a;
59 }
60
61
62 template <

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected