2
0
mirror of https://github.com/boostorg/math.git synced 2026-01-26 18:52:10 +00:00

Added note on user option to handle infinity and other special cases by intercept before calling distribution or function.

[SVN r43801]
This commit is contained in:
Paul A. Bristow
2008-03-23 11:53:51 +00:00
parent d02ae84866
commit 62909573be

View File

@@ -207,6 +207,11 @@ However in a few cases, for example normal, where we felt it obvious,
we have permitted argument(s) to be infinity,
provided infinity is implemented for the realType on that implementation.
Users who require special handling of infinity (or other specific value) can,
of course, always intercept this before calling a distribution or function
and return their own choice of value, or other behavior.
This will often be simpler than trying to handle the aftermath of the error policy.
Overflow, underflow, denorm can be handled using __error_policy.
We have also tried to catch boundary cases where the mathematical specification