2 #include <stdio.h> // needed for EOF hidden in NTL_io_vector_impl
3 #include <stdlib.h> // needed for abort hidden in NTL_vector_impl
4 #include <barvinok/NTL_QQ.h>
6 NTL_vector_impl(QQ
,vec_QQ
);
10 vec_QQ
& operator *= (vec_QQ
& a
, const ZZ
& b
)
12 for (int i
= 0; i
< a
.length(); ++i
)
17 vec_QQ
& operator *= (vec_QQ
& a
, const QQ
& b
)
19 for (int i
= 0; i
< a
.length(); ++i
)
24 std::ostream
& operator<< (std::ostream
& os
, const QQ
& q
)
26 os
<< q
.n
<< "/" << q
.d
;
30 std::istream
& operator>> (std::istream
& is
, QQ
& q
)
33 is
>> q
.n
>> slash
>> q
.d
;
39 NTL_io_vector_impl(QQ
,vec_QQ
);