In-place filtering, complex computation
Can input and output arrays in filtering functions and complex math functions be same?
arm_fir_f32(&S, samples, samples, N);
arm_biquad_cascade_df2T_f32(&S, samples, samples, N);
arm_cmplx_mag_f32(samples, samples, numSamples);
If this is possible, it should be mentioned in documentation. If impossible, these arguments must be marked with restrict attribute.
@Alouettesu It is on my to do list to review (and document) the functions where the output can be the input. And when the output can be the input, I'll create also a separate version with restrict keyword where the output and input must be different.
For complex mag, it is possible to do in place processing. For the filtering I don't (yet) know.
Hi Cristopher, did you have any chance to review this issue?
@JustasSiauliai Unfortunately, documenting all of this is a change that will take a long time since there are lots of function to review and update. The most secure is to assume you can't do in-place filtering.