MCPcopy Create free account
hub / github.com/SuprDewd/CompetitiveProgramming / inv

Method inv

code/mathematics/ntt.cpp:14–14  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12 Num operator /(const Num &b) const {
13 return (ll)x * b.inv().x; }
14 Num inv() const { return mod_pow<ll>((ll)x, mod-2, mod); }
15 Num pow(int p) const { return mod_pow<ll>((ll)x, p, mod); }
16} T1[MAXN], T2[MAXN];
17void ntt(Num x[], int n, bool inv = false) {

Callers 3

operator /Method · 0.80
nttFunction · 0.80
invFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected