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.

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