Function

vDSP_vfixr16D(_:_:_:_:_:)

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

Declaration

func vDSP_vfixr16D(_ __A: UnsafePointer<Double>, _ __IA: vDSP_Stride, _ __C: UnsafeMutablePointer<Int16>, _ __IC: vDSP_Stride, _ __N: vDSP_Length)

Discussion

This function is the same as vDSP_vfixr16(_:_:_:_:_:), except for the type of vector A.

See Also

Single-Vector Floating Point to 16-Bit Integer Conversion

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

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

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

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

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

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

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

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

func vDSP_vfix16(UnsafePointer<Float>, vDSP_Stride, UnsafeMutablePointer<Int16>, vDSP_Stride, vDSP_Length)

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

func vDSP_vfix16D(UnsafePointer<Double>, vDSP_Stride, UnsafeMutablePointer<Int16>, vDSP_Stride, vDSP_Length)

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

func vDSP_vfixr16(UnsafePointer<Float>, vDSP_Stride, UnsafeMutablePointer<Int16>, vDSP_Stride, vDSP_Length)

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

func vDSP_vfixu16(UnsafePointer<Float>, vDSP_Stride, UnsafeMutablePointer<UInt16>, vDSP_Stride, vDSP_Length)

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

func vDSP_vfixu16D(UnsafePointer<Double>, vDSP_Stride, UnsafeMutablePointer<UInt16>, vDSP_Stride, vDSP_Length)

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

func vDSP_vfixru16(UnsafePointer<Float>, vDSP_Stride, UnsafeMutablePointer<UInt16>, vDSP_Stride, vDSP_Length)

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

func vDSP_vfixru16D(UnsafePointer<Double>, vDSP_Stride, UnsafeMutablePointer<UInt16>, vDSP_Stride, vDSP_Length)

Converts an array of double-precision floating-point values to unsigned 16-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