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
6#include <complex>
7
8namespace stan {
9namespace math {
10
19template <typename T>
20inline std::complex<fvar<T>> proj(const std::complex<fvar<T>>& z) {
21 return internal::complex_proj(z);
22}
23
24} // namespace math
25} // namespace stan
26
27#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:20
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