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.1 vsip_real_p - Complex Real part

vsip_scalar_f vsip_real_f(vsip_cscalar_f x);
Description

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

Parameters
Return Value
Example

vsip_cscalar_f complex_value = {1.0, 2.0}; 
vsip_scalar_f real_part; 
 
real_part = vsip_real_f(complex_value);