Adelsbach/VSIPL
Core Programming Reference Guide
DD-00016-015
Core

This manual is preliminary and incomplete.
While our Core implementation implements all functions given in the standard we are still working on completing this documentation.

Please refer to the VSIPL standard for a complete function reference of the Core profile until we have completed work on this documentation.

2.2.3 vsip_cmplx_p - Create complex number

vsip_cscalar_f vsip_cmplx_f(vsip_scalar_f r, vsip_scalar_f 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);