Function

vDSP_vsort(_:_:_:)

Sorts a single-precision vector in-place.

Declaration

func vDSP_vsort(_ __C: UnsafeMutablePointer<Float>, _ __N: vDSP_Length, _ __Order: Int32)

Parameters

__C

Single-precision real input-output vector

__N

The number of elements to process

__Order

Flag for sort order: 1 for ascending, -1 for descending

Discussion

Performs an in-place sort of vector C in the order specified by parameter Order.