PrimeFFT constructor

PrimeFFT(
  1. int size,
  2. bool padToPow2
)

Constructs an FFT object with the given size.

The size must be a prime number greater than 2, eg 3, 5, 7, 11 etc.

Implementation

PrimeFFT(int size, bool padToPow2)
    : this._(
        size,
        padToPow2,
        padToPow2 ? nextPowerOf2((size - 1) << 1) : size - 1,
      );