Rate This Document
Findability
Accuracy
Completeness
Readability

Complex Numbers

A complex number in the KVSIP is described by a structure that contains 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 {
    <datatype>  r;
    <datatype>  i;
} vsip_cscalar_<type>;

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 KVSIP (defined in vsip.h).

Table 1 Types of complex numbers used in the KVSIP

Complex Number Type

vsip_cscalar_f

vsip_cscalar_d