|
From: | Dmitri A. Sergatskov |
Subject: | Re: Re: Sparse matrix problem |
Date: | Thu, 4 Jan 2007 09:01:19 -0700 |
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. --
[Prev in Thread] | Current Thread | [Next in Thread] |