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