Searched refs:mod_inverse (Results 1 – 5 of 5) sorted by relevance
1 [section:mod_inverse Modular Multiplicative Inverse]12 #include <boost/integer/mod_inverse.hpp>17 Z mod_inverse(Z a, Z m);25 int x = mod_inverse(2, 5);29 int y = mod_inverse(2, 4);36 If /a/ and /m/ share a common factor, then `mod_inverse(a, m)` returns zero.
20 using boost::integer::mod_inverse;37 Z inv_a = mod_inverse(a, modulus); in test_mod_inverse()
6 boost_integer/mod_inverse.html
23 Z mod_inverse(Z a, Z modulus) in mod_inverse() function
73 [[link boost_integer.mod_inverse Modular multiplicative inverse].]74 [[^[@../../../../boost/integer/mod_inverse.hpp <boost/integer/mod_inverse.hpp>]]]379 [include modular_arithmetic/mod_inverse.qbk]