fft method

Computes the complex forward FFT into the reusable real/imag buffers.

Example:

final z = plan.fft(inRe, inIm);

Implementation

Complex32List fft(Float32List inRe, Float32List inIm) {
  final r = res;
  _loadInput(inRe, inIm);
  yl_fft_plan_execute_c2c_forward(
    r.plan,
    r.inReal,
    r.inImag,
    r.outReal,
    r.outImag,
  );

  real.setAll(0, r.outReal.asTypedList(n));
  imag.setAll(0, r.outImag.asTypedList(n));

  return Complex32List.wrap(real, imag);
}