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

Overview

Converts a complex vector of 16-bits integer each component into a complex vector of 32-bits float each component.

Dispatcher Prototype

void volk_16ic_convert_32fc(lv_32fc_t* outputVector, const lv_16sc_t* inputVector,
unsigned int num_points)
float complex lv_32fc_t
Definition: volk_complex.h:74
short complex lv_16sc_t
Definition: volk_complex.h:71

Inputs

  • inputVector: The complex 16-bit integer input data buffer.
  • num_points: The number of data values to be converted.

Outputs

  • outputVector: pointer to a vector holding the converted vector.

Example

int N = 10000;
unsigned int alignment = volk_get_alignment();
lv_16sc_t* input = (lv_16sc_t*)volk_malloc(sizeof(lv_16sc_t)*N, alignment);
lv_32fc_t* output = (lv_32fc_t*)volk_malloc(sizeof(lv_32fc_t)*N, alignment);
volk_16ic_convert_32f(output, input, N);
volk_free(input);
volk_free(output);
size_t volk_get_alignment(void)
Get the machine alignment in bytes.
Definition: volk.tmpl.c:90
__VOLK_DECL_BEGIN VOLK_API void * volk_malloc(size_t size, size_t alignment)
Allocate size bytes of data aligned to alignment.
Definition: volk_malloc.c:38
VOLK_API void volk_free(void *aptr)
Free's memory allocated by volk_malloc.
Definition: volk_malloc.c:80