Generic Type Method

maximumMagnitude(_:)

Returns the maximum magnitude element in a single-precision vector.

Declaration

static func maximumMagnitude<U>(_ vector: U) -> Float where U : AccelerateBuffer, U.Element == Float

See Also

Maximum Calculation

static func maximum<U>(U) -> Double

Returns the maximum element in a double-precision vector.

static func maximum<U>(U) -> Float

Returns the maximum element in a single-precision vector.

static func maximumMagnitude<U>(U) -> Double

Returns the maximum magnitude element in a double-precision vector.

static func indexOfMaximum<U>(U) -> (UInt, Double)

Returns the maximum element, and its index, in a double-precision vector.

static func indexOfMaximum<U>(U) -> (UInt, Float)

Returns the maximum element, and its index, in a signal-precision vector.

static func indexOfMaximumMagnitude<U>(U) -> (UInt, Double)

Returns the maximum magnitude element, and its index, in a double-precision vector.

static func indexOfMaximumMagnitude<U>(U) -> (UInt, Float)

Returns the maximum magnitude element, and its index, in a single-precision vector.

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

Calculates the maximum magnitude in a single-precision vector.

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

Calculates the maximum magnitude and corresponding index in a single-precision vector.

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