MCPcopy Create free account
hub / github.com/ShahjalalShohag/code-library / operator /=

Method operator /=

Math/Thomas Algorithm.cpp:21–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19 modint<MOD> inv() const { return pow(MOD - 2); } // MOD must be a prime
20 inline modint<MOD> operator / (modint<MOD> other) const { return *this * other.inv(); }
21 inline modint<MOD> operator /= (modint<MOD> other) { return *this *= other.inv(); }
22 inline bool operator == (modint<MOD> other) const { return value == other.value; }
23 inline bool operator != (modint<MOD> other) const { return value != other.value; }
24 inline bool operator < (modint<MOD> other) const { return value < other.value; }

Callers

nothing calls this directly

Calls 1

invMethod · 0.45

Tested by

no test coverage detected