Overview
Multiplies the input complex vector by a complex scalar and returns the results.
Dispatcher Prototype
Inputs
- aVector: The input vector to be multiplied.
- scalar The complex scalar to multiply against aVector.
- num_points: The number of complex values in aVector.
Outputs
- cVector: The vector where the results will be stored.
Example Generate points around the unit circle and shift the phase pi/3 rad.
int N = 10;
float delta = 2.f*M_PI / (float)N;
for(unsigned int ii = 0; ii < N/2; ++ii){
float real = std::cos(delta * (float)ii);
float imag = std::sin(delta * (float)ii);
}
volk_32fc_s32fc_multiply_32fc(out, in, scalar, N);
printf(" mag phase | mag phase\n");
for(unsigned int ii = 0; ii < N; ++ii){
printf("%+1.2f %+1.2f | %+1.2f %+1.2f\n",
std::abs(in[ii]), std::arg(in[ii]),
std::abs(out[ii]), std::arg(out[ii]));
}