1 #ifndef __STAN__MATH__ERROR_HANDLING__CHECK_FINITE_HPP__
2 #define __STAN__MATH__ERROR_HANDLING__CHECK_FINITE_HPP__
12 template <
typename T_y,
17 static bool check(
const char*
function,
24 " is %1%, but must be finite!",
"",
30 template <
typename T_y,
33 struct finite<T_y, T_result, Policy, true> {
34 static bool check(
const char*
function,
40 for (
size_t n = 0; n <
length(y); n++) {
43 " is %1%, but must be finite!",
"",
53 template <
typename T_y,
typename T_result,
class Policy>
59 return finite<T_y,T_result,Policy,
61 ::check(
function, y, name, result, Policy());
64 template <
typename T_y,
typename T_result>
76 return check_finite<T,typename scalar_type<T>::type *>