Hi TJ,
thanks for the reply... let's say that I work with Ipp64f* instead of Ipp32f* to avoid the transformation between float and double, do I still need to assign one by one the values between my vector and the double pointer? I just wanted to avoid loops and allocation and deallocation of the double pointer.
Ipp64f xx[5*4] = { 10, 0, 5, 0, 10,
0, 0, 4, 0, 0,
0, 0, 3, 0, 0,
10, 0, 2, 0, 10};
double **x;
x = new double*[4];
for(int i=0; i<5; i++)
x = new double[4];
// --- these are the loops I'd love to avoid ---
for(int i=0; i<4; i++)
for(int j=0; j<5; j++)
x = xx[5*i+j];
.... [do something with the double pointer] ...
for( int i=0; i<5; i++)
delete x;
delete []x;
Boris