Stan  2.5.0
probability, sampling & optimization
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
check_positive_finite.hpp
Go to the documentation of this file.
1 #ifndef STAN__MATH__ERROR_HANDLING_CHECK_POSITIVE_FINITE_HPP
2 #define STAN__MATH__ERROR_HANDLING_CHECK_POSITIVE_FINITE_HPP
3 
6 
7 namespace stan {
8  namespace math {
9 
10  // throws if any element in y is nan
11  template <typename T_y, typename T_result>
12  inline bool check_positive_finite(const char* function,
13  const T_y& y,
14  const char* name,
15  T_result* result) {
16  stan::math::check_positive(function, y, name, result);
17  stan::math::check_finite(function, y, name, result);
18 
19  return true;
20  }
21 
22  }
23 }
24 #endif
bool check_positive_finite(const char *function, const T_y &y, const char *name, T_result *result)
bool check_finite(const char *function, const T_y &y, const char *name, T_result *result)
Checks if the variable y is finite.
bool check_positive(const char *function, const T_y &y, const char *name, T_result *result)

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