<!--
{
  "availability" : [
    "iOS: 15.0.0 -",
    "iPadOS: 15.0.0 -",
    "macCatalyst: -",
    "macOS: 12.0.0 -",
    "tvOS: 15.0.0 -",
    "visionOS: -",
    "watchOS: 8.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Accelerate",
  "identifier" : "/documentation/Accelerate/vDSP/DiscreteFourierTransform/transform(real:imaginary:)-82jag",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Accelerate"
    ],
    "preciseIdentifier" : "s:10Accelerate4vDSPO24DiscreteFourierTransformCAASdRszrlE9transform4real9imaginarySaySdGAG_AiHtqd___qd__tAA0A6BufferRd__Sd7ElementRtd__lF"
  },
  "title" : "transform(real:imaginary:)"
}
-->

# transform(real:imaginary:)

Returns the result of a double-precision discrete Fourier transform.

```
func transform<U>(real: U, imaginary: U) -> (real: [Double], imaginary: [Double]) where U : AccelerateBuffer, U.Element == Double
```

## Parameters

`real`

An array that contains the real parts of the input.

`imaginary`

An array that contains the imaginary parts of the input.

## Return Value

A tuple of two arrays that represents the real and imaginary parts of the output.

---

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)