<!--
{
  "availability" : [
    "iOS: 6.0.0 -",
    "iPadOS: 6.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.9.0 -",
    "tvOS: -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Accelerate",
  "identifier" : "/documentation/Accelerate/vDSP_DCT_Execute",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Accelerate"
    ],
    "preciseIdentifier" : "c:@F@vDSP_DCT_Execute"
  },
  "title" : "vDSP_DCT_Execute"
}
-->

# vDSP_DCT_Execute

Calculates the discrete cosine transform for a vector.

```
void vDSP_DCT_Execute(const struct vDSP_DFT_SetupStruct *__Setup, const float *__Input, float *__Output);
```

## Parameters

`__Setup`

A DCT setup object returned by a call to [`vDSP_DCT_CreateSetup`](/documentation/Accelerate/vDSP_DCT_CreateSetup)

`__Input`

Single-precision input vector that contains the number of elements specified in the setup structure.

`__Output`

Single-precision output vector that contains the number of elements specified in the setup structure.

## Discussion

In-place operation is supported.

---

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)