vsip_cscalar_f vsip_cmplx_f(vsip_scalar_f r, vsip_scalar_f i); vsip_cscalar_d vsip_cmplx_d(vsip_scalar_d r, vsip_scalar_d i);
This function creates a complex scalar from the real part r and the imaginary part i.
vsip_scalar_p r: The real part of the complex scalar.
vsip_scalar_p i: The imaginary part of the complex scalar.
The created complex scalar.
vsip_scalar_f real_part = 1.0; vsip_scalar_f imag_part = 2.0; vsip_cscalar_f complex_value; complex_value = vsip_cmplx_f(real_part, imag_part);