1#ifndef STAN_MATH_OPENCL_REV_LDEXP_HPP
2#define STAN_MATH_OPENCL_REV_LDEXP_HPP
23template <
typename T_a,
typename T_b,
24 require_all_kernel_expressions_t<T_a, T_b>* =
nullptr,
25 require_st_integral<T_b>* =
nullptr>
32 adjoint_results(a) += expressions(ldexp(res.adj(), b_arena));
Represents an arithmetic matrix on the OpenCL device.
var_value< plain_type_t< T > > make_callback_var(T &&value, F &&functor)
Creates a new var initialized with a callback_vari with a given value and reverse-pass callback funct...
fvar< T > ldexp(const fvar< T > &a, int b)
Returns the product of a (the significand) times 2 to power b (the exponent).
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.
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...