R: Octave 3.1.55 available for ftp

Marco Atzeri marco_atzeri at yahoo.it
Sat Mar 28 04:32:08 CDT 2009




--- 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

 


      



More information about the Octave-maintainers mailing list