Boost logo

Boost-Commit :

From: pbristow_at_[hidden]
Date: 2008-03-23 07:53:51


Author: pbristow
Date: 2008-03-23 07:53:51 EDT (Sun, 23 Mar 2008)
New Revision: 43801
URL: http://svn.boost.org/trac/boost/changeset/43801

Log:
Added note on user option to handle infinity and other special cases by intercept before calling distribution or function.
Text files modified:
   sandbox/math_toolkit/libs/math/doc/sf_and_dist/implementation.qbk | 5 +++++
   1 files changed, 5 insertions(+), 0 deletions(-)

Modified: sandbox/math_toolkit/libs/math/doc/sf_and_dist/implementation.qbk
==============================================================================
--- sandbox/math_toolkit/libs/math/doc/sf_and_dist/implementation.qbk (original)
+++ sandbox/math_toolkit/libs/math/doc/sf_and_dist/implementation.qbk 2008-03-23 07:53:51 EDT (Sun, 23 Mar 2008)
@@ -207,6 +207,11 @@
 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


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk