SPRUI04F july 2015 – april 2023
To use complex data types, you must include the <complex.h> header file. If this header file is included, complex support is available for all C/C++ modes, including relaxed and strict ANSI modes and C89 and C99. The <complex.h> header file implements math operation and function support for complex data types.
Complex types are implemented as an array of two elements. For example, for the following declaration, the variable is stored as an array of two floats. The real portion of the number is stored in x._Vals[0] and the imaginary portion of the number is stored in x._Vals[1].
float complex x;