dpoly: mark some more arguments/methods const
[barvinok.git] / NTL_QQ.cc
blobce5ae82673112b66d451ffbb48589ad48ae95c2e
1 #include <assert.h>
2 #include <barvinok/NTL_QQ.h>
4 NTL_vector_impl(QQ,vec_QQ);
6 vec_QQ& operator *= (vec_QQ& a, const ZZ& b)
8 for (int i = 0; i < a.length(); ++i)
9 a[i] *= b;
10 return a;
13 std::ostream& operator<< (std::ostream& os, const QQ& q)
15 os << q.n << "/" << q.d;
16 return os;
19 std::istream& operator>> (std::istream& is, QQ& q)
21 assert(0);
22 return is;
25 NTL_io_vector_impl(QQ,vec_QQ);