Function

vDSP_zvmgsa(_:_:_:_:_:_:_:)

Complex vector magnitudes square and add; single precision.

Declaration

func vDSP_zvmgsa(_ __A: UnsafePointer<DSPSplitComplex>, _ __IA: vDSP_Stride, _ __B: UnsafePointer<Float>, _ __IB: vDSP_Stride, _ __C: UnsafeMutablePointer<Float>, _ __IC: vDSP_Stride, _ __N: vDSP_Length)

Parameters

__A

Single-precision complex input vector

__IA

Stride for A

__B

Single-precision real input vector

__IB

Stride for B

__C

Single-precision real output vector

__IC

Stride for C

__N

The number of elements to process

Discussion

Adds the squared magnitudes of complex vector A to real vector B and store the results in real vector C.

mathematical formula

where Re are the real parts of A and Im are the imaginary parts.

See Also

Single-Vector Squaring

static func square<U>(U) -> [Double]

Returns a double-precision array containing the square of each element in the supplied vector.

static func square<U>(U) -> [Float]

Returns a single-precision array containing the square of each element in the supplied vector.

static func square<U, V>(U, result: inout V)

Calculates the square of each element in the supplied double-precision vector.

static func square<U, V>(U, result: inout V)

Calculates the square of each element in the supplied single-precision vector.

static func signedSquare<U>(U) -> [Double]

Returns a double-precision array containing the signed square of each element in the supplied vector.

static func signedSquare<U>(U) -> [Float]

Returns a single-precision array containing the signed square of each element in the supplied vector.

static func signedSquare<U, V>(U, result: inout V)

Calculates the signed square of each element in the supplied double-precision vector.

static func signedSquare<U, V>(U, result: inout V)

Calculates the signed square of each element in the supplied single-precision vector.

static func squareMagnitudes<V>(DSPSplitComplex, result: inout V)

Calculates the square magnitude of each element in the supplied single-precision complex vector.

static func squareMagnitudes<V>(DSPDoubleSplitComplex, result: inout V)

Calculates the square magnitude of each element in the supplied double-precision complex vector.

func vDSP_vsq(UnsafePointer<Float>, vDSP_Stride, UnsafeMutablePointer<Float>, vDSP_Stride, vDSP_Length)

Computes the squared value of each element in the supplied single-precision vector.

func vDSP_vsqD(UnsafePointer<Double>, vDSP_Stride, UnsafeMutablePointer<Double>, vDSP_Stride, vDSP_Length)

Computes the squared value of each element in the supplied double-precision vector.

func vDSP_vssq(UnsafePointer<Float>, vDSP_Stride, UnsafeMutablePointer<Float>, vDSP_Stride, vDSP_Length)

Computes the signed squared value of each element in the supplied single-precision vector.

func vDSP_vssqD(UnsafePointer<Double>, vDSP_Stride, UnsafeMutablePointer<Double>, vDSP_Stride, vDSP_Length)

Computes the signed squared value of each element in the supplied double-precision vector.

func vDSP_zvmags(UnsafePointer<DSPSplitComplex>, vDSP_Stride, UnsafeMutablePointer<Float>, vDSP_Stride, vDSP_Length)

Computes the squared magnitude value of each element in the supplied complex single-precision vector.

func vDSP_zvmagsD(UnsafePointer<DSPDoubleSplitComplex>, vDSP_Stride, UnsafeMutablePointer<Double>, vDSP_Stride, vDSP_Length)

Computes the squared magnitude value of each element in the supplied complex double-precision vector.