1#ifndef STAN_MATH_PRIM_CORE_OPERATOR_SUBTRACTION_HPP
2#define STAN_MATH_PRIM_CORE_OPERATOR_SUBTRACTION_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_subtract(const U &lhs, const V &rhs)
Return the difference between specified arguments.
fvar< T > operator-(const fvar< T > &x1, const fvar< T > &x2)
Return the difference of the specified arguments.
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...