---
title: "transform(real:imaginary:)"
framework: accelerate
role: symbol
role_heading: Instance Method
path: "accelerate/vdsp/discretefouriertransform/transform(real:imaginary:)-82jag"
---

# transform(real:imaginary:)

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

## Declaration

```swift
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

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

## See Also

### Performing Split-Complex Discrete Fourier Transforms

- [transform(real:imaginary:)](accelerate/vdsp/discretefouriertransform/transform(real:imaginary:)-4nwy9.md)
- [transform(inputReal:inputImaginary:outputReal:outputImaginary:)](accelerate/vdsp/discretefouriertransform/transform(inputreal:inputimaginary:outputreal:outputimaginary:)-sihh.md)
- [transform(inputReal:inputImaginary:outputReal:outputImaginary:)](accelerate/vdsp/discretefouriertransform/transform(inputreal:inputimaginary:outputreal:outputimaginary:)-7115x.md)
