Function

# vDSP_vabs(_:_:_:_:_:)

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

## Parameters

`__A`

Single-precision real input vector.

`__IA`

Stride size for `A`.

`__C`

Single-precision real output vector.

`__IC`

Address stride for `C`.

`__N`

The number of elements to process.

## Discussion

This performs the following operation:

Writes the absolute values of the elements of `A` into corresponding elements of `C`.

### 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_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_vnabs(UnsafePointer<Float>, vDSP_Stride, UnsafeMutablePointer<Float>, vDSP_Stride, vDSP_Length)`

Calculates the negative absolute value of each element in the supplied single-precision 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.