Function

vDSP_vnabs(_:_:_:_:_:)

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

Declaration

func vDSP_vnabs(_ __A: UnsafePointer<Float>, _ __IA: vDSP_Stride, _ __C: UnsafeMutablePointer<Float>, _ __IC: vDSP_Stride, _ __N: vDSP_Length)

Parameters

_A

Single-precision real input vector.

_I

Address stride for _A.

_C

Single-precision real output vector.

_K

Address stride for _C.

_N

The number of elements to process.

Discussion

This performs the following operation:

mathematical formula

Each value in __vDSP_C is the negated absolute value of the corresponding element in __vDSP_A.

See Also

Single-Vector Absolute Value

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

Returns the absolute value of each element in the supplied double-precision vector.

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

Returns the absolute value of each element in the supplied single-precision vector.

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

Calculates the absolute value of each element in the supplied single-precision complex vector.

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

Calculates the absolute value of each element in the supplied double-precision complex vector.

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

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

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

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

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

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

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

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

func vDSP_vabsi(UnsafePointer<Int32>, vDSP_Stride, UnsafeMutablePointer<Int32>, vDSP_Stride, vDSP_Length)

Calculates the absolute value of each element in the supplied integer vector using specified stride.

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

Calculates the negative absolute 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