6 #ifndef REALROOT_SCALAR_EXTENDED_INTEGER_H_
7 #define REALROOT_SCALAR_EXTENDED_INTEGER_H_
19 std::ostream& operator <<(std::ostream& os, const scalar<EMPZ>&
b);
39 template<>
template<
class U>
293 std::ostream& operator <<(std::ostream& os, const scalar<EMPZ>&
b)
295 os <<
b.rep().a <<
" + " <<
b.rep().b <<
" * sqrt( " <<
b.rep().c <<
" )";
299 template<
class OSTREAM>
inline void
301 os << b.
rep().
a <<
" + " << b.
rep().
b <<
" * sqrt( " << b.
rep().
c <<
" )";
314 template<>
inline void
371 template<
typename T,
typename F>
struct as_helper;
378 #endif // REALROOT_SCALAR_EXTENDED_INTEGER_H_
bool operator>(const scalar< T > &rhs) const
scalar< T > & operator+=(const scalar< T > &rhs)
scalar()
Definition: scalar.hpp:37
const C & b
Definition: Interval_glue.hpp:25
scalar< T > & operator=(const scalar< T > &rhs)
bool operator>=(const scalar< T > &rhs) const
Definition: assign.hpp:48
Definition: extended.hpp:25
T & rep()
Definition: scalar.hpp:30
R & rep(R &r)
Definition: shared_object.hpp:180
scalar< EMPZ > max(const scalar< EMPZ > &a1, const scalar< EMPZ > &a2)
Definition: scalar_extended_integer.hpp:361
extended< NT > operator-(const extended< NT > &lhs, const extended< NT > &rhs)
Definition: extended.hpp:132
extended< NT > operator/(const extended< NT > &lhs, const extended< NT > &rhs)
Definition: extended.hpp:111
scalar< T > & operator-=(const scalar< T > &rhs)
int compare(const QQ &a, const QQ &b)
Definition: GMPXX.hpp:71
T c
Definition: extended.hpp:33
extended< NT > operator+(const extended< NT > &lhs, const extended< NT > &rhs)
Definition: extended.hpp:122
static int compare(const Self &lhs, const Self &rhs)
Definition: extended.hpp:63
bool operator<(const scalar< T > &rhs) const
static double cv(const scalar< EMPZ > &x)
Definition: scalar_extended_integer.hpp:374
bool operator<=(const scalar< T > &rhs) const
bool operator!=(const scalar< T > &rhs) const
Interval< T, r > min(const Interval< T, r > &a, const Interval< T, r > &b)
Definition: Interval_fcts.hpp:130
scalar< T > & operator*=(const scalar< T > &rhs)
long int bit_size(const ZZ &z)
Definition: GMPXX.hpp:32
extended< MPZ > EMPZ
Definition: scalar_extended_integer.hpp:17
scalar< T > & operator/=(const scalar< T > &rhs)
void print(OSTREAM &os, const Interval< T, r > &a)
Definition: Interval.hpp:135
bool operator==(const scalar< T > &rhs) const
MP_INT MPZ
Definition: scalar_integer.hpp:18
const C & c
Definition: Interval_glue.hpp:45
T b
Definition: extended.hpp:33
T a
Definition: extended.hpp:33
void assign(A &a, const B &b)
Generic definition of the assignement function.
Definition: assign.hpp:97
Interval< T, r > max(const Interval< T, r > &a, const Interval< T, r > &b)
Definition: Interval_fcts.hpp:135
extended< NT > operator*(const extended< NT > &lhs, const extended< NT > &rhs)
Definition: extended.hpp:101
Definition: scalar.hpp:24
~scalar()
Definition: scalar.hpp:55
#define assert(expr, msg)
Definition: shared_object.hpp:57