我要评分
获取效率
正确性
完整性
易理解

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

-