|
Ublas : |
Subject: Re: [ublas] [bindings][lapack] Error handling
From: Karl Meerbergen (Karl.Meerbergen_at_[hidden])
Date: 2010-07-27 06:14:56
Hello Rutger,
I prefer a return value, but a system error or a lapack error can be
nice too.
There are usually two cases in lapack errors: negative values of info
which usually indicate serious errors and are most often due to bugs.
Those could give rise to throwing an exception. Positive values must not
give rise to an exception, I think, as they may or may not be
exceptional behaviour. So, a clean solution would make distinction
between those cases, I believe.
Best,
Karl
Rutger ter Borg wrote:
> Hello all,
>
> looking at the lange case, I am wondering what would be your preferred way
> of handling LAPACK's info parameter?
>
> 1) as a return type
> 2) pass it as the last parameter / argument
> 3) like 2, but then using boost::system_error
> 4) using exceptions
> 5) some of the above, may be configured using a Policy
>
> Thanks,
> Cheers,
>
> Rutger
>
>
>
> _______________________________________________
> ublas mailing list
> ublas_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/ublas
> Sent to: karl.meerbergen_at_[hidden]
>
Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm