mirror of
https://github.com/boostorg/integer.git
synced 2025-07-29 20:27:14 +02: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