1#ifndef STAN_MATH_PRIM_SCAL_FUN_COPYSIGN_HPP
2#define STAN_MATH_PRIM_SCAL_FUN_COPYSIGN_HPP
29template <
typename T,
typename U>
30inline T copysign(
const T& x,
const U& y) {
48template <
typename T,
typename U>
71template <
typename T,
typename U>
72inline std::complex<T> copysign(
const std::complex<T>& x,
73 const std::complex<U>& y) {
copysign_< as_operation_cl_t< T1 >, as_operation_cl_t< T2 > > copysign(T1 &&a, T2 &&b)
double value_of_rec(const fvar< T > &v)
Return the value of the specified variable.
T copysign_non_zero(const T &x, const U &y)
Return the negation of the first argument if the first and second arguments have different signs and ...
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...