Overview
Computes the dot product (inner product) of two double-precision vectors. Returns the sum of element-wise products: result = sum(input[i] * taps[i]).
Dispatcher Prototype
void volk_64f_x2_dot_prod_64f(double* result, const double* input, const double* taps,
unsigned int num_points)
Inputs
- input: First input vector.
- taps: Second input vector (filter coefficients).
- num_points: Vector length.
Outputs
- result: Pointer to store the scalar dot product result.
Example
unsigned int N = 10;
double* a = (
double*)
volk_malloc(N *
sizeof(
double), align);
double* b = (
double*)
volk_malloc(N *
sizeof(
double), align);
double result;
for (
unsigned int i = 0;
i < N;
i++) {
}
volk_64f_x2_dot_prod_64f(&result, a, b, N);
size_t volk_get_alignment(void)
Get the machine alignment in bytes.
Definition volk.tmpl.c:90
for i
Definition volk_config_fixed.tmpl.h:13
__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:70