Rate This Document
Findability
Accuracy
Completeness
Readability

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).

Table 1 Types of complex numbers used in the HMPP

Complex Number Type

Hmpp16sc

Hmpp32sc

Hmpp64sc

Hmpp8sc

Hmpp16uc

Hmpp32fc

Hmpp64fc

-