Stan  2.5.0
probability, sampling & optimization
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
bessel_first_kind.hpp
Go to the documentation of this file.
1 #ifndef STAN__MATH__FUNCTIONS__BESSEL_FIRST_KIND_HPP
2 #define STAN__MATH__FUNCTIONS__BESSEL_FIRST_KIND_HPP
3 
4 #include <boost/math/special_functions/bessel.hpp>
6 
7 namespace stan {
8  namespace math {
9 
38  template<typename T2>
39  inline T2
40  bessel_first_kind(const int v, const T2 z) {
41  check_not_nan("bessel_first_kind(%1%)", z, "z", static_cast<double*>(0));
42  return boost::math::cyl_bessel_j(v,z);
43  }
44 
45  }
46 }
47 
48 #endif
T2 bessel_first_kind(const int v, const T2 z)
bool check_not_nan(const char *function, const T_y &y, const char *name, T_result *result)
Checks if the variable y is nan.

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