<!--
{
  "availability" : [
    "iOS: 26.0.0 -",
    "iPadOS: 26.0.0 -",
    "macCatalyst: -",
    "macOS: 26.0.0 -",
    "tvOS: 26.0.0 -",
    "visionOS: -",
    "watchOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Accelerate",
  "identifier" : "/documentation/Accelerate/vDSP/DiscreteFourierTransform/init(previousDFT:count:direction:transformType:ofType:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Accelerate"
    ],
    "preciseIdentifier" : "s:10Accelerate4vDSPO24DiscreteFourierTransformC11previousDFT5count9direction13transformType02ofK0AEy_xGAKSg_SiAC0dE9DirectionOAC012DFTTransformK0OxmtKcfc"
  },
  "title" : "init(previousDFT:count:direction:transformType:ofType:)"
}
-->

# init(previousDFT:count:direction:transformType:ofType:)

Initializes a new discrete Fourier transform structure.

```
init(previousDFT: vDSP.DiscreteFourierTransform<T>?, count: Int, direction: vDSP.FourierTransformDirection, transformType: vDSP.DFTTransformType, ofType: T.Type) throws
```

## Parameters

`previousDFT`

A previous DFT instance to share data with.

`count`

The number of complex elements.

`transformType`

Specifies whether the forward transform is real-to-complex or complex-to-complex.

## Discussion

The `count` parameter must be:

- For split-complex real-to-complex: `2ⁿ` or `f * 2ⁿ`, where `f` is `3`, `5`, or `15` and `n >= 4`.
- For split-complex complex-to-complex: `2ⁿ` or `f * 2ⁿ`, where `f` is `3`, `5`, or `15` and `n >= 3`.
- For interleaved: `f * 2ⁿ`, where `f` is `2`, `3`, `5`, `3x3`, `3x5`, or `5x5`, and `n>=2`.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)