Contents

nearestInteger(_:)

Returns the nearest integer to each element in a vector of single-precision values.

Declaration

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

See Also

Array-Oriented Arithmetic and Auxiliary Functions