Function

vDSP_zaspec(_:_:_:)

Computes the autospectrum of complex single-precision vector.

Declaration

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

Parameters

__A

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

__C

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

__N

Number of elements to process.

Discussion

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

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software