Complex operations

Complex operations

Hi,

I'm new to the Intel MKL Library. I can't find arithmetics operations with the complexs numbers defined in mkl_types.h.
I found that the complex structure in the Intel library is:

/* Complex type (single precision). */
typedef
struct _MKL_Complex8 {
float real;
float imag;
} MKL_Complex8;

/* Complex type (double precision). */
typedef
struct _MKL_Complex16 {
double real;
double imag;
} MKL_Complex16;


I can't do for example:

MKL_Complex8 test1;
MKL_Complex8 test2;
test_number1.real=1.0;
test_number1.imag=2.2;
test_number1.real=3.3;
test_number1.imag=4.0;

test_number1 = test_number1 + test_number2;
/*or*/
test_number1+=test_number2;

Thank you.

1 post / 0 new
For more complete information about compiler optimizations, see our Optimization Notice.