Boost logo

Boost Users :

Subject: [Boost-users] [rational] proposed gcd and lcm for rational
From: Thomas Taylor (thomas.taylor_at_[hidden])
Date: 2011-07-21 06:34:28


Dear boost users and maintainers,

As I needed these functions myself I have added a gcd and an lcm for the
rational type.
Feel free to do with the code whatever you want, if suitable add it to
rational.hpp. Presumably this could be reworked as partial specialisation of
boost::math::gcd and boost::math::lcm respectively (if there is a trait like
is_rational).

HTH,
Thomas




Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net