1#ifndef STAN_MATH_REV_FUN_OWENS_T_HPP
2#define STAN_MATH_REV_FUN_OWENS_T_HPP
28template <
typename Var1,
typename Var2,
29 require_all_st_var<Var1, Var2>* =
nullptr,
30 require_all_not_std_vector_t<Var1, Var2>* =
nullptr>
31inline auto owens_t(
const Var1& h,
const Var2& a) {
65template <
typename Var,
typename Arith, require_st_arithmetic<Arith>* =
nullptr,
66 require_all_not_std_vector_t<Var, Arith>* =
nullptr,
67 require_st_var<Var>* =
nullptr>
68inline auto owens_t(
const Var& h,
const Arith& a) {
97template <
typename Arith,
typename Var, require_st_arithmetic<Arith>* =
nullptr,
98 require_all_not_std_vector_t<Var, Arith>* =
nullptr,
99 require_st_var<Var>* =
nullptr>
100inline auto owens_t(
const Arith& h,
const Var& a) {
108 const auto one_p_a_sq
T as_array_or_scalar(T &&v)
Returns specified input value.
void reverse_pass_callback(F &&functor)
Puts a callback on the autodiff stack to be called in reverse pass.
T eval(T &&arg)
Inputs which have a plain_type equal to the own time are forwarded unmodified (for Eigen expressions ...
fvar< T > erf(const fvar< T > &x)
static constexpr double INV_SQRT_TWO
The value of 1 over the square root of 2, .
static constexpr double INV_SQRT_TWO_PI
The value of 1 over the square root of , .
arena_t< T > to_arena(const T &a)
Converts given argument into a type that either has any dynamic allocation on AD stack or schedules i...
fvar< T > owens_t(const fvar< T > &x1, const fvar< T > &x2)
Return Owen's T function applied to the specified arguments.
static constexpr double TWO_PI
Twice the value of , .
auto as_value_array_or_scalar(T &&v)
Extract the value from an object.
fvar< T > square(const fvar< T > &x)
fvar< T > exp(const fvar< T > &x)
typename internal::arena_type_impl< std::decay_t< T > >::type arena_t
Determines a type that can be used in place of T that does any dynamic allocations on the AD stack.
std::conditional_t< is_any_var_matrix< ReturnType, Types... >::value, stan::math::var_value< stan::math::promote_scalar_t< double, plain_type_t< ReturnType > > >, stan::math::promote_scalar_t< stan::math::var_value< double >, plain_type_t< ReturnType > > > return_var_matrix_t
Given an Eigen type and several inputs, determine if a matrix should be var<Matrix> or Matrix<var>.
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...
Template metaprogram to calculate the base scalar return type resulting from promoting all the scalar...