CompositeFFT constructor

CompositeFFT(
  1. int size
)

Constructs an FFT object with the given size.

Implementation

CompositeFFT(int size)
    : _buf = Float64x2List(size),
      _out = Float64x2List(size),
      _twiddles = twiddleFactors(size),
      _perm = Uint64List(size),
      super._(size) {
  final decomp = mergeTwosIntoFours(primeDecomp(size));
  for (int i = 0; i < decomp.length; ++i) {
    _ffts.add(<_CompositeFFTJob>[]);
  }
  _ctorRec(_buf, _out, decomp, size, 1, 0, 0, 0);
  _innerBuf = (decomp.length % 2 != 0) ? _buf : _out;
}