<!--
{
  "documentType" : "article",
  "framework" : "Accelerate",
  "identifier" : "/documentation/Accelerate/phase-computation-functions",
  "metadataVersion" : "0.1.0",
  "role" : "collectionGroup",
  "title" : "Phase computation functions"
}
-->

# Phase computation functions

Calculate the element-wise phase values, in radians, of a complex vector.

## Topics

### Single-Vector Phase Computation

The functions in this group compute the phase values of each element in a complex vector.

[`static func phase<V>(DSPSplitComplex, result: inout V)`](/documentation/Accelerate/vDSP/phase(_:result:)-1ve4y)

Calculates the single-precision element-wise phase values, in radians, of the supplied complex vector.

[`static func phase<V>(DSPDoubleSplitComplex, result: inout V)`](/documentation/Accelerate/vDSP/phase(_:result:)-56qb1)

Calculates the double-precision element-wise phase values, in radians, of the supplied complex vector.

[`extern void vDSP_zvphas(const DSPSplitComplex *__A, vDSP_Stride __IA, float *__C, vDSP_Stride __IC, vDSP_Length __N);`](/documentation/Accelerate/vDSP_zvphas)

Calculates the single-precision element-wise phase values, in radians, of the supplied complex vector using the specified stride.

[`extern void vDSP_zvphasD(const DSPDoubleSplitComplex *__A, vDSP_Stride __IA, double *__C, vDSP_Stride __IC, vDSP_Length __N);`](/documentation/Accelerate/vDSP_zvphasD)

Calculates the double-precision element-wise phase values, in radians, of the supplied complex vector using the specified stride.



---

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)