1#ifndef STAN_MATH_REV_CORE_STD_COMPLEX_HPP
2#define STAN_MATH_REV_CORE_STD_COMPLEX_HPP
17class complex<
stan::math::var>
35 template <
typename U,
typename V>
45 template <
typename U,
typename = stan::require_stan_scalar_t<U>>
50 :
base_t(z.real(), z.imag()) {}
60 template <
typename U,
typename = stan::require_arithmetic_t<U>>
Base class for complex numbers.
complex(const U &re, const V &im)
Construct a complex number from real and imaginary parts.
auto & operator=(const std::complex< U > &x)
Set the real and imaginary components of this complex number to those of the specified complex number...
complex(const U &re)
Construct a complex number with specified real part and zero imaginary part.
complex(const std::complex< U > &z)
complex()=default
Construct a complex number with zero real and imaginary parts.
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...