Automatic Differentiation
 
Loading...
Searching...
No Matches
proj.hpp
Go to the documentation of this file.
1#ifndef STAN_MATH_FWD_FUN_PROJ_HPP
2#define STAN_MATH_FWD_FUN_PROJ_HPP
3
7#include <complex>
8
9namespace stan {
10namespace math {
11
20template <typename T>
21inline std::complex<fvar<T>> proj(const std::complex<fvar<T>>& z) {
22 return internal::complex_proj(z);
23}
24
25} // namespace math
26} // namespace stan
27
28#endif
std::complex< V > complex_proj(const std::complex< V > &z)
Return the projection of the complex argument onto the Riemann sphere.
Definition proj.hpp:33
std::complex< fvar< T > > proj(const std::complex< fvar< T > > &z)
Return the projection of the complex argument onto the Riemann sphere.
Definition proj.hpp:21
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...
This template class represents scalars used in forward-mode automatic differentiation,...
Definition fvar.hpp:40