mirror of
https://github.com/boostorg/integer.git
synced 2025-10-28 15:01:37 +01:00
Update docs. [CI SKIP]
This commit is contained in:
@@ -14,7 +14,7 @@ A fast algorithm for computing modular multiplicative inverses based on the exte
|
||||
namespace boost { namespace integer {
|
||||
|
||||
template<class Z>
|
||||
boost::optional<Z> mod_inverse(Z a, Z p);
|
||||
boost::optional<Z> mod_inverse(Z a, Z m);
|
||||
|
||||
}}
|
||||
|
||||
@@ -22,7 +22,7 @@ A fast algorithm for computing modular multiplicative inverses based on the exte
|
||||
|
||||
[section Usage]
|
||||
|
||||
Multiplicative modular inverses exist if and only if /a/ and /p/ are coprime.
|
||||
Multiplicative modular inverses exist if and only if /a/ and /m/ are coprime.
|
||||
So for example
|
||||
|
||||
auto x = mod_inverse(2, 5);
|
||||
|
||||
Reference in New Issue
Block a user