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>
7 NTL_vector_impl(QQ
,vec_QQ
);
12 vec_QQ
& operator *= (vec_QQ
& a
, const ZZ
& b
)
14 for (int i
= 0; i
< a
.length(); ++i
)
19 vec_QQ
& operator *= (vec_QQ
& a
, const QQ
& b
)
21 for (int i
= 0; i
< a
.length(); ++i
)
26 std::ostream
& operator<< (std::ostream
& os
, const QQ
& q
)
28 os
<< q
.n
<< "/" << q
.d
;
32 std::istream
& operator>> (std::istream
& is
, QQ
& q
)
35 is
>> q
.n
>> slash
>> q
.d
;
41 #ifdef NTL_io_vector_impl
42 NTL_io_vector_impl(QQ
,vec_QQ
);