Automatic Differentiation
 
Loading...
Searching...
No Matches

◆ check_not_nan()

template<typename T_y >
void stan::math::check_not_nan ( const char *  function,
const char *  name,
const T_y &  y 
)
inline

Check if y is not NaN.

This function is vectorized and will check each element of y. If any element is NaN, this function will throw an exception.

Template Parameters
T_yType of y
Parameters
functionFunction name (for error messages)
nameVariable name (for error messages)
yVariable to check
Exceptions
<code>domain_error</code>if any element of y is NaN

Definition at line 26 of file check_not_nan.hpp.