Stan Math Library
4.9.0
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
4
#include <
stan/math/rev/core.hpp
>
5
#include <
stan/math/rev/fun/atan2.hpp
>
6
#include <
stan/math/prim/fun/arg.hpp
>
7
#include <complex>
8
9
namespace
stan
{
10
namespace
math {
11
18
inline
var
arg
(
const
std::complex<var>& z) {
return
internal::complex_arg
(z); }
19
20
}
// namespace math
21
}
// namespace stan
22
23
#endif
stan::math::var_value< double >
stan::math::internal::complex_arg
V complex_arg(const std::complex< V > &z)
Return the phase angle of the complex argument.
Definition
arg.hpp:30
stan::math::arg
fvar< T > arg(const std::complex< fvar< T > > &z)
Return the phase angle of the complex argument.
Definition
arg.hpp:19
stan
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...
Definition
unit_vector_constrain.hpp:15
arg.hpp
core.hpp
atan2.hpp
stan
math
rev
fun
arg.hpp
[
Stan Home Page
]
© 2011–2019, Stan Development Team.