Stan Math Library  2.15.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 
6 
7 namespace stan {
8  namespace math {
9 
25  template <typename T_y>
26  inline void check_positive_finite(const char* function,
27  const char* name,
28  const T_y& y) {
29  check_positive(function, name, y);
30  check_finite(function, name, y);
31  }
32 
33  }
34 }
35 #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–2016, Stan Development Team.