Adelsbach/VSIPL
Core Light Double Precision Programming Reference Guide
DD-00014-015
Core Light +DP

3.4 vsip_cmplx_p - Create complex number

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);
Description

This function creates a complex scalar from the real part r and the imaginary part i.

Parameters
Return Value
Example

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);