1#ifndef STAN_MATH_PRIM_FUN_DIVIDE_HPP
2#define STAN_MATH_PRIM_FUN_DIVIDE_HPP
22template <
typename Scal1,
typename Scal2,
23 require_all_stan_scalar_t<Scal1, Scal2>* =
nullptr>
44template <
typename T1,
typename T2, require_any_eigen_t<T1, T2>* =
nullptr,
45 require_all_not_st_var<T1, T2>* =
nullptr>
48 [](
auto&& m_,
auto&& c_) {
53 std::forward<T1>(m), std::forward<T2>(c));
auto divide(T_a &&a, double d)
Returns the elementwise division of the kernel generator expression.
typename return_type< Ts... >::type return_type_t
Convenience type for the return type of the specified template parameters.
T as_array_or_scalar(T &&v)
Returns specified input value.
void throw_domain_error(const char *function, const char *name, const T &y, const char *msg1, const char *msg2)
Throw a domain error with a consistently formatted message.
auto make_holder(F &&func, Args &&... args)
Calls given function with given arguments.
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...