Overview
This block computes the conjugate dot product (or inner product) between two vectors, the input
and taps
vectors. Given a set of num_points
taps, the result is the sum of products between the input vector and the conjugate of the taps. The result is a single value stored in the result
address and is returned as a complex float.
Dispatcher Prototype
const lv_32fc_t* taps,
unsigned int num_points)
Inputs
- input: vector of complex floats.
- taps: complex float taps.
- num_points: number of samples in both
input
and taps
.
Outputs
- result: pointer to a complex float value to hold the dot product result.
Example
unsigned int N = 1000;
unsigned int alignment = volk_get_alignment();
for (int i = 0; i < N; ++i) {
}
volk_32fc_x2_conjugate_dot_prod_32fc(&res, a, b, N);
printf("Expected: %8.2f%+8.2fi\n", lv_real(e), lv_imag(e));
printf("Result: %8.2f%+8.2fi\n", lv_real(res), lv_imag(res));