[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Sparse matrix problem
From: |
David Bateman |
Subject: |
Re: Sparse matrix problem |
Date: |
Thu, 04 Jan 2007 17:09:40 +0100 |
User-agent: |
Thunderbird 1.5.0.7 (X11/20060921) |
Dmitri A. Sergatskov wrote:
> On 1/3/07, John W. Eaton <address@hidden> wrote:
>
>>
>> What happens when you compile and run the following program?
>>
>> #include <complex>
>> #include <iostream>
>>
>> int
>> main (void)
>> {
>> std::cout << std::complex<double> (1.0, 1.0) / 0.0 << std::endl;
>> return 0;
>> }
>>
>> With g++ 4.1.2 on my system, it prints (nan,nan). That seems like a
>> bug to me, but maybe it is standard conforming (and if it is, wtf?!?)?
>>
>
> BTW, if I compile it with optimization on it would give (inf, inf).
>
> Dmitri.
> --
>
With 4.0.1 and -O3 it still gives (nan,nan)
D.
--
David Bateman address@hidden
Motorola Labs - Paris +33 1 69 35 48 04 (Ph)
Parc Les Algorithmes, Commune de St Aubin +33 6 72 01 06 33 (Mob)
91193 Gif-Sur-Yvette FRANCE +33 1 69 35 77 01 (Fax)
The information contained in this communication has been classified as:
[x] General Business Information
[ ] Motorola Internal Use Only
[ ] Motorola Confidential Proprietary
- RE: Re: Sparse matrix problem, (continued)
- Re: Sparse matrix problem, Michael Goffioul, 2007/01/03
- Re: Re: Sparse matrix problem, Dmitri A. Sergatskov, 2007/01/04
- Re: Sparse matrix problem,
David Bateman <=
- Re: Re: Sparse matrix problem, John W. Eaton, 2007/01/04
- Re: Re: Sparse matrix problem, Dmitri A. Sergatskov, 2007/01/04