help-gsl
[Top][All Lists]
Advanced

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

Re: [Help-gsl] Error handling


From: Brian Gough
Subject: Re: [Help-gsl] Error handling
Date: Tue, 18 Jul 2006 17:19:05 +0100
User-agent: Wanderlust/2.14.0 (Africa) Emacs/21.3 Mule/5.0 (SAKAKI)

At Tue, 18 Jul 2006 15:17:40 +0200,
Raphael Mack wrote:
> The last line will overflow for element (0, 0) so I'd like to see the
> value of A = [Inf, 3] and I expected result == GSL_EOVRFLW.
> 
> I wonder how I can compile my app and setup gsl to get this behavior,
> because I already played with gsl_ieee_set_mode, but then I get an OS
> signal which I don't like.

We don't handle IEEE overflow, it's left to the user to detect it.

You can use the standard C function fetestexcept() to check whether
any IEEE exceptions were raised during a function call and then reset
them if necessary.

-- 
Brian Gough

Network Theory Ltd,
Publishing the GSL Manual - http://www.network-theory.co.uk/gsl/manual/




reply via email to

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