Automatic Differentiation
 
Loading...
Searching...
No Matches
arg.hpp
Go to the documentation of this file.
1#ifndef STAN_MATH_FWD_FUN_ARG_HPP
2#define STAN_MATH_FWD_FUN_ARG_HPP
3
6#include <complex>
7
8namespace stan {
9namespace math {
10
18template <typename T>
19inline fvar<T> arg(const std::complex<fvar<T>>& z) {
20 return internal::complex_arg(z);
21}
22
23} // namespace math
24} // namespace stan
25
26#endif
V complex_arg(const std::complex< V > &z)
Return the phase angle of the complex argument.
Definition arg.hpp:30
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 ...
Definition fvar.hpp:9
This template class represents scalars used in forward-mode automatic differentiation,...
Definition fvar.hpp:40