On Sat, Aug 21, 2010 at 2:40 PM, Romain Francois
<rom...@r-enthusiasts.com>wrote:

> Not that I care, but I'm slightly surprised at the implementation of log1p
> :
> specifically that it throws an exception
> Romain


I changed the code in msvcmath.cpp to return non-signalling NaN when there
is
a problem instead of throwing an exception. This is what happens when you
try sqrt(-1.0), for example.

I'm attaching the diffs. I don't think I can checkin directly, right?

Thanks,
Dominick

Attachment: msvc.diff
Description: Binary data

Attachment: msvcmath.cpp
Description: Binary data

_______________________________________________
Rcpp-devel mailing list
Rcpp-devel@lists.r-forge.r-project.org
https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel

Reply via email to