Function

vDSP_vfixu32(_:_:_:_:_:)

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

Declaration

func vDSP_vfixu32(_ __A: UnsafePointer<Float>, _ __IA: vDSP_Stride, _ __C: UnsafeMutablePointer<UInt32>, _ __IC: vDSP_Stride, _ __N: vDSP_Length)

Parameters

__A

Source vector.

__IA

Source vector stride length.

__C

Destination vector.

__IC

Destination vector stride length.

__N

Number of elements in vector.

Discussion

If the resulting value is outside the bounds of the output type, the behavior is undefined. If you need to handle out-of-bounds data, you should use one of the functions in Clipping Operations on the data first.

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 double-precision values to 32-bit unsigned 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_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.