Overview
Accumulates the values in the input buffer.
Dispatcher Prototype
Inputs
- inputBuffer: The buffer of data to be accumulated
- num_points: The number of data points.
Outputs
- result: The accumulated result.
Example Calculate the sum of numbers 0 through 99
int N = 100;
unsigned int alignment = volk_get_alignment();
for(unsigned int ii = 0; ii < N; ++ii){
vec[ii] =
lv_cmake( (
float) ii, (
float) -ii );
}
volk_32fc_accumulator_s32fc(out, vec, N);
printf(
"sum(0..99)+1j*sum(0..-99) = %1.2f %1.2f \n",
lv_creal(*out) ,
lv_cimag(*out)
);