Automatic Differentiation
 
Loading...
Searching...
No Matches
divide.hpp
Go to the documentation of this file.
1#ifndef STAN_MATH_OPENCL_PRIM_DIVIDE_HPP
2#define STAN_MATH_OPENCL_PRIM_DIVIDE_HPP
3#ifdef STAN_OPENCL
4
7
8namespace stan {
9namespace math {
18template <typename T_a,
19 typename = require_all_kernel_expressions_and_none_scalar_t<T_a>>
20inline auto divide(T_a&& a, double d) { // NOLINT
21 return elt_divide(std::forward<T_a>(a), d);
22}
23} // namespace math
24} // namespace stan
25#endif
26#endif
elt_divide_< as_operation_cl_t< T_a >, as_operation_cl_t< T_b > > elt_divide(T_a &&a, T_b &&b)
auto divide(T_a &&a, double d)
Returns the elementwise division of the kernel generator expression.
Definition divide.hpp:20
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...