octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: R: Octave 3.1.55 available for ftp


From: Marco Atzeri
Subject: Re: R: Octave 3.1.55 available for ftp
Date: Sat, 28 Mar 2009 09:32:08 +0000 (GMT)



--- Sab 28/3/09, Jaroslav Hajek ha scritto:

> Da: Jaroslav Hajek 

> >
> > --- Ven 27/3/09, Jaroslav Hajek  ha scritto:

> 
> OK, it's apparent that the problem is deeper - seems that
> std::abs
> does not work well with infinite complex numbers on cygwin.
> Can you
> verify?
> 
> #include <iostream>
> #include <complex>
> 
> int main()
> {
>   double a = 0;
>   double b = 1. / a;
>   a += 1;
>   std::cout << std::abs
> (std::complex<double> (b, a)) << '\n';
> }
> 
> I'm not sure what's best here, if this is true - I don't
> much like the
> idea of working around std::abs by explicit isinf &
> isnan checks,
> because that's going to slow things down unnecessarily on
> platforms
> where std::abs works correctly.
> 
> -- 
> RNDr. Jaroslav Hajek

NaN

I will look in cygwin std::abs implementation

Regards
Marco

 


      



reply via email to

[Prev in Thread] Current Thread [Next in Thread]