Vector Optimized Library of Kernels  2.0
Architecture-tuned implementations of math kernels

Overview

Deinterleaves the complex floating point vector and return the real part (inphase) of the samples that have been converted to doubles.

Dispatcher Prototype

void volk_32fc_deinterleave_real_64f(double* iBuffer, 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.

Example

Generate complex numbers around the top half of the unit circle and
extract all of the real parts to a double buffer.
\code
int N = 10;
unsigned int alignment = volk_get_alignment();
lv_32fc_t* in = (lv_32fc_t*)volk_malloc(sizeof(lv_32fc_t)*N, alignment);
double* re = (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);
in[ii] = lv_cmake(real, imag);
}
volk_32fc_deinterleave_real_64f(re, in, N);
printf(" real part\n");
for(unsigned int ii = 0; ii < N; ++ii){
printf("out(%i) = %+.1g\n", ii, re[ii]);
}
volk_free(in);
volk_free(re);