void vsip_CMPLX_f(vsip_scalar_f a, vsip_scalar_f b, vsip_cscalar_f *r); void vsip_CMPLX_d(vsip_scalar_d a, vsip_scalar_d b, vsip_cscalar_d *r);
This function creates a complex scalar from the real part a and the imaginary part b and stores the result in the complex scalar pointed to by r.
vsip_scalar_p a: The real part of the complex scalar.
vsip_scalar_p b: The imaginary part of the complex scalar.
vsip_cscalar_p* r: Pointer to the complex scalar where the result will be stored.
vsip_scalar_f real_part = 1.0; vsip_scalar_f imag_part = 2.0; vsip_cscalar_f complex_value; vsip_CMPLX_f(real_part, imag_part, &complex_value);