Overview
Rotate input vector at fixed rate per sample from initial phase offset.
Dispatcher Prototype
float complex lv_32fc_t
Definition: volk_complex.h:74
Inputs
- inVector: Vector to be rotated.
- phase_inc: rotational velocity.
- phase: initial phase offset.
- num_points: The number of values in inVector to be rotated and stored into outVector.
Outputs
- outVector: The vector where the results will be stored.
Example Generate a tone at f=0.3 (normalized frequency) and use the rotator with f=0.1 to shift the tone to f=0.4. Change this example to start with a DC tone (initialize in with lv_cmake(1, 0)) to observe rotator signal generation.
int N = 10;
for(unsigned int ii = 0; ii < N; ++ii){
float real = std::cos(0.3f * (float)ii);
float imag = std::sin(0.3f * (float)ii);
}
float frequency = 0.1f;
volk_32fc_s32fc_x2_rotator_32fc(out, in, phase_increment, &phase, N);
for(unsigned int ii = 0; ii < N; ++ii){
printf("out[%u] = %+1.2f %+1.2fj\n",
}
size_t volk_get_alignment(void)
Get the machine alignment in bytes.
Definition: volk.tmpl.c:90
#define lv_cimag(x)
Definition: volk_complex.h:98
#define lv_cmake(r, i)
Definition: volk_complex.h:77
#define lv_creal(x)
Definition: volk_complex.h:96
__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