Hi
I'm looking for an efficient way of converting an array of integers to an array of doubles.
Currently I'm doing this:
int *a = new int[1000]; //And then assign values to the indexes
double *b = new double[1000];
for(int i = 0; i < 1000; i++)
{
b[i] = (double) a[i];
}
But this seems extremely inefficient to me, especially if you do this with large arrays over and over again. Isn't there some other way to do the conversion, such as cast or so?