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.4 vsip_CMPLX_p - Create a Complex Scalar and Store in a Pointer

void vsip_CMPLX_f(vsip_scalar_f a, vsip_scalar_f b, vsip_cscalar_f *r);
Description

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.

Parameters
Example

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