Automatic Differentiation
 
Loading...
Searching...
No Matches
polar.hpp File Reference
#include <stan/math/prim/fun/cos.hpp>
#include <stan/math/prim/fun/is_inf.hpp>
#include <stan/math/prim/meta.hpp>
#include <cmath>
#include <complex>
#include <limits>

Go to the source code of this file.

Namespaces

namespace  stan
 The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation from C or the boost::math::lgamma implementation.
 
namespace  stan::math
 Matrices and templated mathematical functions.
 
namespace  stan::math::internal
 A comparator that works for any container type that has the brackets operator.
 

Functions

template<typename U , typename V >
complex_return_t< U, V > stan::math::internal::complex_polar (const U &r, const V &theta)
 Returns complex number with specified magnitude and phase angle.
 
std::complex< double > stan::math::polar (double r, double theta)
 Returns the complex number with specified magnitude and phase angle.
 
std::complex< double > stan::math::polar (double r, int theta)
 
std::complex< double > stan::math::polar (int r, double theta)
 
std::complex< double > stan::math::polar (int r, int theta)