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

◆ to_complex() [2/2]

template<typename T1 , typename T2 , require_any_container_t< T1, T2 > * = nullptr, require_all_st_stan_scalar< T1, T2 > * = nullptr>
auto stan::math::to_complex ( const T1 &  re,
const T2 &  im 
)
inline

Return a complex valued container from a real component and an imaginary component.

Template Parameters
Ttype of real component
Stype of imaginary component
Parameters
[in]rereal component
[in]imimaginary component
Returns
complex valued container with specified real and imaginary components

Definition at line 40 of file to_complex.hpp.