Automatic Differentiation
 
Loading...
Searching...
No Matches

◆ to_complex() [1/2]

template<typename T = double, typename S = double, require_all_not_container_t< T, S > * = nullptr>
constexpr std::complex< stan::real_return_t< T, S > > stan::math::to_complex ( const T &  re = 0,
const S &  im = 0 
)
inlineconstexpr

Return a complex value from a real component and an imaginary component.

Default values for both components is 0.

Template Parameters
Ttype of real component
Stype of imaginary component
Parameters
[in]rereal component (default = 0)
[in]imimaginary component (default = 0)
Returns
complex value with specified real and imaginary components

Definition at line 23 of file to_complex.hpp.