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

3.3 vsip_imag_p - Complex Imaginary part

vsip_scalar_f vsip_imag_f(vsip_cscalar_f x); 
vsip_scalar_d vsip_imag_d(vsip_cscalar_d x);
Description

This function extracts the imaginary part of the complex scalar x.

Parameters
Return Value
Example

vsip_cscalar_f complex_value = {1.0, 2.0}; 
vsip_scalar_f imag_part; 
 
imag_part = vsip_imag_f(complex_value);