Stan Math Library
2.20.0
reverse mode automatic differentiation
stan
math
prim
scal
fun
bessel_first_kind.hpp
Go to the documentation of this file.
1
#ifndef STAN_MATH_PRIM_SCAL_FUN_BESSEL_FIRST_KIND_HPP
2
#define STAN_MATH_PRIM_SCAL_FUN_BESSEL_FIRST_KIND_HPP
3
4
#include <
stan/math/prim/meta.hpp
>
5
#include <boost/math/special_functions/bessel.hpp>
6
#include <
stan/math/prim/scal/err/check_not_nan.hpp
>
7
8
namespace
stan
{
9
namespace
math {
10
37
template
<
typename
T2>
38
inline
T2
bessel_first_kind
(
int
v,
const
T2 z) {
39
check_not_nan
(
"bessel_first_kind"
,
"z"
, z);
40
return
boost::math::cyl_bessel_j(v, z);
41
}
42
43
}
// namespace math
44
}
// namespace stan
45
#endif
check_not_nan.hpp
stan::math::bessel_first_kind
fvar< T > bessel_first_kind(int v, const fvar< T > &z)
Definition:
bessel_first_kind.hpp:12
stan
Definition:
log_sum_exp.hpp:8
meta.hpp
stan::math::check_not_nan
void check_not_nan(const char *function, const char *name, const T_y &y)
Check if y is not NaN.
Definition:
check_not_nan.hpp:45
[
Stan Home Page
]
© 2011–2018, Stan Development Team.