Generic Type Method

convertElements(of:to:rounding:)

Converts double-precision values to 32-bit unsigned integers.

Declaration

static func convertElements<U, V>(of source: U, to destination: inout V, rounding: vDSP.RoundingMode) where U : AccelerateBuffer, V : AccelerateMutableBuffer, U.Element == Double, V.Element == UInt32

See Also

Single-Vector Floating Point to 32-Bit Integer Conversion

static func convertElements<U, V>(of: U, to: inout V, rounding: vDSP.RoundingMode)

Converts double-precision values to 32-bit signed integers.

static func convertElements<U, V>(of: U, to: inout V, rounding: vDSP.RoundingMode)

Converts single-precision values to 32-bit signed integers.

static func convertElements<U, V>(of: U, to: inout V, rounding: vDSP.RoundingMode)

Converts single-precision values to 32-bit unsigned integers.

func vDSP_vfix32(UnsafePointer<Float>, vDSP_Stride, UnsafeMutablePointer<Int32>, vDSP_Stride, vDSP_Length)

Converts an array of single-precision floating-point values to signed 32-bit integer values, rounding towards zero.

func vDSP_vfix32D(UnsafePointer<Double>, vDSP_Stride, UnsafeMutablePointer<Int32>, vDSP_Stride, vDSP_Length)

Converts an array of double-precision floating-point values to signed 16-bit integer values, rounding towards zero.

func vDSP_vfixr32(UnsafePointer<Float>, vDSP_Stride, UnsafeMutablePointer<Int32>, vDSP_Stride, vDSP_Length)

Converts an array of single-precision floating-point values to signed 32-bit integer values, rounding towards nearest integer.

func vDSP_vfixr32D(UnsafePointer<Double>, vDSP_Stride, UnsafeMutablePointer<Int32>, vDSP_Stride, vDSP_Length)

Converts an array of double-precision floating-point values to signed 32-bit integer values, rounding towards nearest integer.

func vDSP_vfixu32(UnsafePointer<Float>, vDSP_Stride, UnsafeMutablePointer<UInt32>, vDSP_Stride, vDSP_Length)

Converts an array of single-precision floating-point values to unsigned 32-bit integer values, rounding towards zero.

func vDSP_vfixu32D(UnsafePointer<Double>, vDSP_Stride, UnsafeMutablePointer<UInt32>, vDSP_Stride, vDSP_Length)

Converts an array of double-precision floating-point values to unsigned 32-bit integer values, rounding towards zero.

func vDSP_vfixru32(UnsafePointer<Float>, vDSP_Stride, UnsafeMutablePointer<UInt32>, vDSP_Stride, vDSP_Length)

Converts an array of single-precision floating-point values to unsigned 32-bit integer values, rounding towards nearest integer.

func vDSP_vfixru32D(UnsafePointer<Double>, vDSP_Stride, UnsafeMutablePointer<UInt32>, vDSP_Stride, vDSP_Length)

Converts an array of double-precision floating-point values to unsigned 32-bit integer values, rounding towards nearest integer.

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