MCPcopy Create free account
hub / github.com/SuprDewd/CompetitiveProgramming / operator *

Method operator *

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

Source from the content-addressed store, hash-verified

9 Num operator +(const Num &b) { return x + b.x; }
10 Num operator -(const Num &b) const { return x - b.x; }
11 Num operator *(const Num &b) const { return (ll)x * b.x; }
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); }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected