\(\newcommand{\B}[1]{ {\bf #1} }\) \(\newcommand{\R}[1]{ {\rm #1} }\)
cpp_check_for_nan#
View page sourceCheck 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 bIf 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.