diff options
| author | Gloria Mundi <gloria@gloria-mundi.eu> | 2024-02-27 16:12:35 +0100 |
|---|---|---|
| committer | Gloria Mundi <gloria@gloria-mundi.eu> | 2024-02-27 16:12:35 +0100 |
| commit | 69cccd197a4aa331647a02046e708396f6a13937 (patch) | |
| tree | 0f871e1dffe91ae44a472450eafefa53381c45da /math | |
| parent | db5ee187a9fb8d9338c74e74c2d2b4b38b2ab586 (diff) | |
rename inv to multInv to match usage sites
Diffstat (limited to 'math')
| -rw-r--r-- | math/shortModInv.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/math/shortModInv.cpp b/math/shortModInv.cpp index 747eb7a..d5eaf07 100644 --- a/math/shortModInv.cpp +++ b/math/shortModInv.cpp @@ -1,3 +1,3 @@ -ll inv(ll a, ll b){ // a^{-1} mod b - return 1 < a ? b - inv(b % a, a) * b / a : 1; -}
\ No newline at end of file +ll multInv(ll a, ll b){ // a^{-1} mod b + return 1 < a ? b - multInv(b % a, a) * b / a : 1; +} |
