1#ifndef STAN_MATH_PRIM_FUN_ARG_HPP
2#define STAN_MATH_PRIM_FUN_ARG_HPP
17inline V
arg(
const std::complex<V>& z) {
32 return atan2(z.imag(), z.real());
V complex_arg(const std::complex< V > &z)
Return the phase angle of the complex argument.
fvar< T > atan2(const fvar< T > &x1, const fvar< T > &x2)
fvar< T > arg(const std::complex< fvar< T > > &z)
Return the phase angle of the complex argument.
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...