[PPL-devel] [Fwd: Re: Representing +inf, -inf and nan in mpq_class objects]

Roberto Bagnara bagnara at cs.unipr.it
Tue Oct 7 09:36:59 CEST 2003



-------- Original Message --------
Subject: Re: Representing +inf, -inf and nan in mpq_class objects
Date: Tue, 07 Oct 2003 09:20:04 +1000
From: Kevin Ryde <user42 at zip.com.au>
To: Roberto Bagnara <bagnara at cs.unipr.it>
CC: gmp-discuss at swox.com
References: <3F7E76E5.1060100 at cs.unipr.it>

Roberto Bagnara <bagnara at cs.unipr.it> writes:
>
> resorting to normal mpz_class
> operations only for normal values.

Provided your special values don't reach the mpq functions there
shouldn't be any problems.

A few mpq functions will be happy with any values actually, eg.
mpq_set and the input/output routines I think.

> e.g., if the (present or future) implementation
> does too much automatic canonicalization.

There's no plans for anything like that.


-- 
Prof. Roberto Bagnara
Computer Science Group
Department of Mathematics, University of Parma, Italy
http://www.cs.unipr.it/~bagnara/
mailto:bagnara at cs.unipr.it




More information about the PPL-devel mailing list