py_fun_check_for_nan#

View page source

Check for Nan in a Function Object#

Syntax#

f.check_for_nan ( b )

f#

This is a d_fun or a_fun function object.

b#

The argument b is a bool . 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#