Skip to content

Commit 7921da2

Browse files
committed
lcm and gcd have been moved to boost::integer.
1 parent bbe495e commit 7921da2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

python.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,9 +118,9 @@ BOOST_PYTHON_MODULE(_bmc) {
118118
.def(repr(self))
119119
;
120120
implicitly_convertible<::bmc::rational::int_type, ::bmc::rational>();
121-
def("gcd", &boost::math::gcd<::bmc::rational>, args("a", "b"),
121+
def("gcd", &boost::integer::gcd<::bmc::rational>, args("a", "b"),
122122
"Compute the greatest common divisor of two rational numbers.");
123-
def("lcm", &boost::math::lcm<::bmc::rational>, args("a", "b"),
123+
def("lcm", &boost::integer::lcm<::bmc::rational>, args("a", "b"),
124124
"Compute the least common multiple of two rational numbers.");
125125

126126
class_<::bmc::time_signature, bases<::bmc::rational> >("time_signature",

0 commit comments

Comments
 (0)