cpp_check_for_nan#

View page source

Check For Nan In Function or Derivative Results#

Syntax#

f.check_for_nan( b )

f#

is a d_fun function object.

b#

This argument has prototype

      int b

If b is true and build_type is debug , f will generate an assert when nan occurs in its function or derivative values. Otherwise, it will just pass back the nan values.

Example#