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

3.5 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); 
void vsip_CMPLX_d(vsip_scalar_d a, vsip_scalar_d b, vsip_cscalar_d *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);