#include <quotient.hpp>
Definition at line 53 of file quotient.hpp.
quotient | ( | ) | [inline] |
Definition at line 59 of file quotient.hpp.
00059 : 00060 n (), d (1) {} template<typename T> inline quotient (const format<T>& fm):
quotient | ( | const format< T > & | fm | ) | [inline] |
Definition at line 61 of file quotient.hpp.
References promote().
quotient | ( | const T & | x | ) | [inline] |
Definition at line 63 of file quotient.hpp.
00063 : 00064 n (outplace_set_as<NT> (x)), d (outplace_set_as<DT> ((int) 1)) {} template<typename NT2, typename DT2>
Definition at line 66 of file quotient.hpp.
00066 : 00067 n (numerator (x)), d (denominator (x)) {} template<typename NT2, typename DT2> inline
quotient | ( | const NT2 & | x, | |
const DT2 & | y | |||
) | [inline] |
Definition at line 69 of file quotient.hpp.
References mmx::normalize(), and promote().
00069 : 00070 n (x), d (y) { 00071 if (n == promote (0, n)) d= promote (1, d); 00072 else quotient_normalization_helper<NT,DT>::normalize (n, d); } template<typename NT2, typename DT2> inline
quotient | ( | const NT2 & | x, | |
const DT2 & | y, | |||
bool | simplify | |||
) | [inline] |
Definition at line 74 of file quotient.hpp.
References mmx::DT, mmx::gcd(), mmx::normalize(), and promote().