\(\newcommand{\B}[1]{ {\bf #1} }\) \(\newcommand{\R}[1]{ {\rm #1} }\)
py_fun_check_for_nan#
View page sourceCheck for Nan in a Function Object#
Syntax#
f
.check_for_nan ( b )f#
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.