#include <rational.hpp>
Public Types | |
typedef IntType | int_type |
Public Member Functions | |
rational () | |
rational (param_type n) | |
rational (param_type n, param_type d) | |
rational & | operator= (param_type n) |
rational & | assign (param_type n, param_type d) |
IntType | numerator () const |
IntType | denominator () const |
rational & | operator+= (const rational &r) |
rational & | operator-= (const rational &r) |
rational & | operator*= (const rational &r) |
rational & | operator/= (const rational &r) |
rational & | operator+= (param_type i) |
rational & | operator-= (param_type i) |
rational & | operator*= (param_type i) |
rational & | operator/= (param_type i) |
const rational & | operator++ () |
const rational & | operator-- () |
bool | operator! () const |
operator bool_type () const | |
bool | operator< (const rational &r) const |
bool | operator== (const rational &r) const |
bool | operator< (param_type i) const |
bool | operator> (param_type i) const |
bool | operator== (param_type i) const |
typedef IntType boost::rational< IntType >::int_type |
|
inline |
|
inline |
|
inline |
|
inline |
References boost::n, and boost::locale::normalize().
Referenced by boost::multiprecision::backends::assign_components(), boost::multiprecision::backends::rational_adaptor< IntBackend >::operator=(), boost::rational< integer_type >::operator=(), and boost::multiprecision::backends::rational_adaptor< IntBackend >::serialize().
|
inline |
|
inline |
Referenced by boost::multiprecision::backends::eval_convert_to(), boost::multiprecision::backends::eval_get_sign(), boost::multiprecision::backends::eval_is_zero(), boost::multiprecision::backends::rational_adaptor< IntBackend >::serialize(), and boost::multiprecision::backends::rational_adaptor< IntBackend >::str().
|
inline |
|
inline |
Referenced by boost::rational< integer_type >::operator bool_type().
rational< IntType > & boost::rational< IntType >::operator*= | ( | const rational< IntType > & | r | ) |
References boost::math::gcd().
|
inline |
References boost::polygon::operators::operator*=().
|
inline |
rational< IntType > & boost::rational< IntType >::operator+= | ( | const rational< IntType > & | r | ) |
References boost::math::gcd().
|
inline |
References boost::numeric::operators::operator+=().
|
inline |
rational< IntType > & boost::rational< IntType >::operator-= | ( | const rational< IntType > & | r | ) |
References boost::math::gcd().
|
inline |
References boost::local_time::operator-=().
rational< IntType > & boost::rational< IntType >::operator/= | ( | const rational< IntType > & | r | ) |
References boost::math::gcd().
|
inline |
References boost::proto::exprns_::operator/=().
bool boost::rational< IntType >::operator< | ( | const rational< IntType > & | r | ) | const |
References BOOST_ASSERT, boost::n, boost::expressions::reverse, and boost::multiprecision::backends::rs.
bool boost::rational< IntType >::operator< | ( | param_type | i | ) | const |
References BOOST_ASSERT, and boost::multiprecision::backends::i.
|
inline |
|
inline |
|
inline |
bool boost::rational< IntType >::operator> | ( | param_type | i | ) | const |
References boost::operator<().