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

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