I have a pointer of doublecomplex using it as the data for my matrix class. Now I want to do some operations just on the real part of the pointer. I know I can work on one real part like this:
doublecomplex * D = new doublecomplex;
D.real = D.imag = i;
But I want to do something like this:
C = AddCL(D.real,E.real);
This function uses opencl and there for I can't give it the doublecomplex pointer.