Overview
Deinterleaves the complex floating point vector into I & Q vector data. The output vectors are converted to doubles.
Dispatcher Prototype
void volk_32fc_deinterleave_64f_x2(
double* iBuffer,
double* qBuffer,
const lv_32fc_t* complexVector,
unsigned int num_points)
Inputs
- complexVector: The complex input vector.
- num_points: The number of complex data values to be deinterleaved.
Outputs
- iBuffer: The I buffer output data.
- qBuffer: The Q buffer output data.
Example Generate complex numbers around the top half of the unit circle and deinterleave in to real and imaginary double buffers.
int N = 10;
double* re = (
double*)
volk_malloc(
sizeof(
double)*N, alignment);
double* im = (
double*)
volk_malloc(
sizeof(
double)*N, alignment);
for(unsigned int ii = 0; ii < N; ++ii){
float real = 2.f * ((float)ii / (float)N) - 1.f;
float imag = std::sqrt(1.f - real * real);
}
volk_32fc_deinterleave_64f_x2(re, im, in, N);
printf(" re | im\n");
for(unsigned int ii = 0; ii < N; ++ii){
printf("out(%i) = %+.1g | %+.1g\n", ii, re[ii], im[ii]);
}