1#ifndef STAN_MATH_PRIM_CORE_OPERATOR_ADDITION_HPP
2#define STAN_MATH_PRIM_CORE_OPERATOR_ADDITION_HPP
22template <
typename U,
typename V>
39template <
typename U,
typename V, require_all_stan_scalar_t<U, V>* =
nullptr>
41 const std::complex<V>& y) {
54template <
typename U,
typename V, require_all_stan_scalar_t<U, V>* =
nullptr>
68template <
typename U,
typename V, require_all_stan_scalar_t<U, V>* =
nullptr>
std::complex< real_return_t< Ts... > > complex_return_t
Convenience type to calculate the complex return type, which wraps std::complex around the return typ...
complex_return_t< U, V > complex_add(const U &lhs, const V &rhs)
Return the sum of the specified arguments.
fvar< T > operator+(const fvar< T > &x1, const fvar< T > &x2)
Return the sum of the specified forward mode addends.
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...