Loading...
Searching...
No Matches
volk_32f_convert_64f

Overview

Converts float values into doubles.

Dispatcher Prototype

void volk_32f_convert_64f(double* outputVector, const float* inputVector, unsigned int
num_points)

Inputs

- inputVector: The vector of floats to convert to doubles.
- num_points: The number of data points.

Outputs

- outputVector: returns the converted doubles.

Example Generate floats and convert them to doubles.

int N = 10;
unsigned int alignment = volk_get_alignment();
float* in = (float*)volk_malloc(sizeof(float)*N, alignment);
double* out = (double*)volk_malloc(sizeof(double)*N, alignment);
for(unsigned int ii = 0; ii < N; ++ii){
in[ii] = (float)ii;
}
volk_32f_convert_64f(out, in, N);
for(unsigned int ii = 0; ii < N; ++ii){
printf("out(%i) = %g\n", ii, out[ii]);
}
volk_free(in);
volk_free(out);