17 #ifndef COMMON_QFRACTION_HH
18 #define COMMON_QFRACTION_HH
62 bool operator< (
const std::complex<double>& lhs,
63 const std::complex<double>& rhs);
65 std::ostream& operator<<(std::ostream& o,
const std::complex<double>& v);
66 ostream& operator<<(ostream& o,
const basic_string<int>& s);
69 struct hash<
awali::q_fraction_t> {
79 struct hash<std::complex<T>> {
Definition: qfraction.hh:26
q_fraction_t(long n, long d)
q_fraction_t operator+(q_fraction_t const &) const
q_fraction_t(num_t n, den_t d=1u)
den_t den
Definition: qfraction.hh:32
int num_t
Definition: qfraction.hh:28
num_t num
Definition: qfraction.hh:31
bool operator<(const q_fraction_t &w) const
q_fraction_t operator/(q_fraction_t const &) const
bool operator!=(const q_fraction_t &w) const
unsigned int den_t
Definition: qfraction.hh:29
bool operator==(const q_fraction_t &w) const
q_fraction_t operator*(q_fraction_t const &) const
q_fraction_t operator-(q_fraction_t const &) const
std::size_t hash_value(const T &v)
Definition: hash.hh:76
Main namespace of Awali.
Definition: ato.hh:22
std::ostream & operator<<(std::ostream &o, const q_fraction_t &v)
size_t operator()(const awali::q_fraction_t &f) const
Definition: qfraction.hh:70
size_t operator()(const std::complex< T > &c) const
Definition: qfraction.hh:80
void hash_combine(std::size_t &seed, const T &v)
Definition: hash.hh:27