Search code examples
iosswiftaccelerate-framework

Apple's Accelerate vDSP : How to get the argument of complex vector from FFT


vDSP allows computing the result of the Discrete Fourier Transform as a complex vector.

The function vDSP_zvmags provides the squared norm of the complex vector. How can I compute the argument (or should I do it myself by hand)?


Solution

  • I think what you want is vDSP_zvphas

    https://developer.apple.com/documentation/accelerate/1449904-vdsp_zvphas?language=objc