Overview
Adds two vectors together element by element:
c[i] = a[i] + b[i]
Dispatcher Prototype
float complex lv_32fc_t
Definition: volk_complex.h:74
Inputs
- aVector: First vector of input points.
- bVector: Second vector of input points.
- num_points: The number of values in both input vector.
Outputs
- cVector: The output vector.
Example
The follow example adds the increasing and decreasing vectors such that the result of every summation pair is 10
int N = 10;
for(unsigned int ii = 0; ii < N; ++ii){
}
volk_32fc_x2_add_32fc(out, increasing, decreasing, N);
for(unsigned int ii = 0; ii < N; ++ii){
printf("out[%u] = %1.2f\n", ii, out[ii]);
}
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