Loading [MathJax]/extensions/TeX/AMSsymbols.js
Automatic Differentiation
 
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Loading...
Searching...
No Matches
modified_bessel_second_kind.hpp
Go to the documentation of this file.
1#ifndef STAN_MATH_PRIM_FUN_MODIFIED_BESSEL_SECOND_KIND_HPP
2#define STAN_MATH_PRIM_FUN_MODIFIED_BESSEL_SECOND_KIND_HPP
3
6#include <boost/math/special_functions/bessel.hpp>
7
8namespace stan {
9namespace math {
10
42template <typename T2, require_arithmetic_t<T2>* = nullptr>
43inline T2 modified_bessel_second_kind(int v, const T2 z) {
44 return boost::math::cyl_bessel_k(v, z);
45}
46
57template <typename T1, typename T2, require_any_container_t<T1, T2>* = nullptr>
58inline auto modified_bessel_second_kind(const T1& a, const T2& b) {
60 [](const auto& c, const auto& d) {
61 return modified_bessel_second_kind(c, d);
62 },
63 a, b);
64}
65
66} // namespace math
67} // namespace stan
68
69#endif
fvar< T > modified_bessel_second_kind(int v, const fvar< T > &z)
auto apply_scalar_binary(const F &f, const T1 &x, const T2 &y)
Base template function for vectorization of binary scalar functions defined by applying a functor to ...
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...