Automatic Differentiation
 
Loading...
Searching...
No Matches
arg.hpp
Go to the documentation of this file.
1#ifndef STAN_MATH_REV_FUN_ARG_HPP
2#define STAN_MATH_REV_FUN_ARG_HPP
3
7#include <complex>
8
9namespace stan {
10namespace math {
11
18inline var arg(const std::complex<var>& z) { return internal::complex_arg(z); }
19
20} // namespace math
21} // namespace stan
22
23#endif
V complex_arg(const std::complex< V > &z)
Return the phase angle of the complex argument.
Definition arg.hpp:31
fvar< T > arg(const std::complex< fvar< T > > &z)
Return the phase angle of the complex argument.
Definition arg.hpp:19
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...