Automatic Differentiation
 
Loading...
Searching...
No Matches
modified_bessel_first_kind.hpp
Go to the documentation of this file.
1#ifndef STAN_MATH_REV_FUN_MODIFIED_BESSEL_FIRST_KIND_HPP
2#define STAN_MATH_REV_FUN_MODIFIED_BESSEL_FIRST_KIND_HPP
3
7
8namespace stan {
9namespace math {
10
11namespace internal {
12
14 public:
16 : op_dv_vari(modified_bessel_first_kind(a, bvi->val_), a, bvi) {}
17 void chain() {
18 bvi_->adj_
19 += adj_
20 * (-ad_ * modified_bessel_first_kind(ad_, bvi_->val_) / bvi_->val_
21 + modified_bessel_first_kind(ad_ - 1, bvi_->val_));
22 }
23};
24} // namespace internal
25
26inline var modified_bessel_first_kind(int v, const var& a) {
28}
29
30} // namespace math
31} // namespace stan
32#endif
fvar< T > modified_bessel_first_kind(int v, const fvar< T > &z)
var_value< double > var
Definition var.hpp:1187
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...