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).
Parent topic: User-defined Data Types and Ranges