Overview
Multiplies the input complex vector by a complex scalar and returns the results.
Dispatcher Prototype
float complex lv_32fc_t
Definition: volk_complex.h:74
Inputs
- aVector: The input vector to be multiplied.
- scalar The complex scalar to multiply against aVector.
- num_points: The number of complex values in aVector.
Outputs
- cVector: The vector where the results will be stored.
Example Generate points around the unit circle and shift the phase pi/3 rad.
int N = 10;
float delta = 2.f*M_PI / (float)N;
for(unsigned int ii = 0; ii < N/2; ++ii){
float real = std::cos(delta * (float)ii);
float imag = std::sin(delta * (float)ii);
}
volk_32fc_s32fc_multiply_32fc(out, in, scalar, N);
printf(" mag phase | mag phase\n");
for(unsigned int ii = 0; ii < N; ++ii){
printf("%+1.2f %+1.2f | %+1.2f %+1.2f\n",
std::abs(in[ii]), std::arg(in[ii]),
std::abs(out[ii]), std::arg(out[ii]));
}
size_t volk_get_alignment(void)
Get the machine alignment in bytes.
Definition: volk.tmpl.c:90
#define lv_cmake(r, i)
Definition: volk_complex.h:77
__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