Stan Math Library  2.11.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 
27  template <typename T_y>
28  inline bool check_positive_finite(const char* function,
29  const char* name,
30  const T_y& y) {
31  stan::math::check_positive(function, name, y);
32  stan::math::check_finite(function, name, y);
33 
34  return true;
35  }
36 
37  }
38 }
39 #endif
bool check_positive(const char *function, const char *name, const T_y &y)
Return true if y is positive.
bool check_finite(const char *function, const char *name, const T_y &y)
Return true if y is finite.
bool check_positive_finite(const char *function, const char *name, const T_y &y)
Return true if y is positive and finite.

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