Computes the autospectrum of complex single-precision vector.


func vDSP_zaspec(_ __A: UnsafePointer<DSPSplitComplex>, _ __C: UnsafeMutablePointer<Float>, _ __N: vDSP_Length)



Single-precision complex input vector with a stride of 1.


Single-precision real input-output vector with a stride of 1.


Number of elements to process.


This function computes the autospectrum of complex input vector A: it multiplies elements of A by their complex conjugates, yielding the sums of the squares of the complex and real parts: (x + iy) (x - iy) = (x*x + y*y). The results are added to real input-output vector C. C should contain valid data from previous processing or should be initialized according to your needs before calling this function.

mathematical formula

See Also

Vector-to-Vector Spectra Computation