Function

vDSP_zvneg(_:_:_:_:_:)

Complex vector negate; single precision.

Declaration

func vDSP_zvneg(_ __A: UnsafePointer<DSPSplitComplex>, _ __IA: vDSP_Stride, _ __C: UnsafePointer<DSPSplitComplex>, _ __IC: vDSP_Stride, _ __N: vDSP_Length)

Parameters

__A

Single-precision complex input vector.

__IA

Address stride for A.

__C

Single-precision complex output vector.

__IC

Address stride for C.

__N

The number of elements to process.

Discussion

Computes the negatives of the values of complex vector A and puts them into complex vector C.

mathematical formula

See Also

Single-Vector Negation

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

Calculates the negative values of the supplied single-precision vector.

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

Calculates the negative values of the supplied double-precision vector.

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

Returns a double-precision array containing the negative values of the supplied vector.

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

Returns a single-precision array containing the negative values of the supplied vector.

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

Calculates the negative absolute values of the supplied double-precision vector.

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

Returns a double-precision array containing the negative absolute values of the supplied vector.

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

Calculates the negative absolute values of the supplied single-precision vector.

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

Returns a single-precision array containing the negative absolute values of the supplied vector.

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

Calculates the negative value of each element in the supplied single-precision vector using specified stride.

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

Calculates the negative value of each element in the supplied double-precision vector using specified stride.

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