vsip_scalar_f vsip_imag_f(vsip_cscalar_f x); vsip_scalar_d vsip_imag_d(vsip_cscalar_d x);
This function extracts the imaginary part of the complex scalar x.
vsip_cscalar_p x: The complex scalar from which to extract the imaginary part.
The imaginary part of the complex scalar.
vsip_cscalar_f complex_value = {1.0, 2.0}; vsip_scalar_f imag_part; imag_part = vsip_imag_f(complex_value);