Overview
Multiplies a complex vector by the conjugate of a secod complex vector and returns the complex result.
Dispatcher Prototype
void volk_32fc_x2_multiply_conjugate_32fc(
lv_32fc_t* cVector,
const lv_32fc_t* aVector,
const lv_32fc_t* bVector,
unsigned int num_points);
Inputs
- aVector: The first input vector of complex floats.
- bVector: The second input vector of complex floats that is conjugated.
- num_points: The number of data points.
Outputs
- outputVector: The output vector complex floats.
Example Calculate mag^2 of a signal using x * conj(x).
int N = 10;
float delta = 2.f*M_PI / (float)N;
for(unsigned int ii = 0; ii < N; ++ii){
float real_1 = std::cos(0.3f * (float)ii);
float imag_1 = std::sin(0.3f * (float)ii);
}
volk_32fc_x2_multiply_conjugate_32fc(out, sig_1, sig_1, N);
for(unsigned int ii = 0; ii < N; ++ii){
}
printf("\n");