Complex Numbers
Complex numbers in the HMPP are described by the structures that contain two numbers of the respective data type. They are real and imaginary parts of the complex number.
The format is defined as follows:
typedef struct {
<data_type> re;
<data_type> im;
} Hmpp<type>c;
For details about the mapping between <type> and <data_type>, see Data Types and Ranges in the Standard Library.
Table 1 describes the types of complex numbers used in the HMPP (defined in hmpp_typebase.h).
Parent topic: User-defined Data Types and Ranges