Discussion created by janaj on Jan 5, 2011
Latest reply on Jan 25, 2011 by chipf


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[5];

for(int i=0;i<5;i++){

    D.real = D.imag = i;



But I want to do something like this:

doublecomplex *D,*E,*C;

C = AddCL(D.real,E.real);

This function uses opencl and there for I can't give it the doublecomplex pointer.


Any ideas?