1 #ifndef __STAN__MATH__ERROR_HANDLING__CHECK_NOT_NAN_HPP__
2 #define __STAN__MATH__ERROR_HANDLING__CHECK_NOT_NAN_HPP__
12 template <
typename T_y,
17 static bool check(
const char*
function,
24 " is %1%, but must not be nan!",
"",
30 template <
typename T_y,
33 struct not_nan<T_y, T_result, Policy, true> {
34 static bool check(
const char*
function,
43 " is %1%, but must not be nan!",
"",
62 template <
typename T_y,
70 return not_nan<T_y,T_result,Policy,
72 ::check(
function, y, name, result, Policy());
86 template <
typename T_y,
91 T_result* result = 0) {
100 return check_not_nan<T, typename scalar_type<T>::type *>