Stan Math Library  2.20.0
reverse mode automatic differentiation
check_positive_finite.hpp
Go to the documentation of this file.
1 #ifndef STAN_MATH_PRIM_SCAL_ERR_CHECK_POSITIVE_FINITE_HPP
2 #define STAN_MATH_PRIM_SCAL_ERR_CHECK_POSITIVE_FINITE_HPP
3 
7 
8 namespace stan {
9 namespace math {
10 
22 template <typename T_y>
23 inline void check_positive_finite(const char* function, const char* name,
24  const T_y& y) {
25  check_positive(function, name, y);
26  check_finite(function, name, y);
27 }
28 
29 } // namespace math
30 } // namespace stan
31 #endif
void check_finite(const char *function, const char *name, const T_y &y)
Check if y is finite.
void check_positive_finite(const char *function, const char *name, const T_y &y)
Check if y is positive and finite.
void check_positive(const char *function, const char *name, const T_y &y)
Check if y is positive.

     [ Stan Home Page ] © 2011–2018, Stan Development Team.