Function

vDSP_vdpsp(_:_:_:_:_:)

Vector convert double-precision to single-precision.

Declaration

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

Parameters

__A

Double-precision real input vector.

__IA

Address stride for A.

__C

Single-precision real output vector.

__IC

Address stride for C.

__N

The number of elements to process.

Discussion

Creates single-precision vector C by converting double-precision inputs from vector A. The behavior is undefined for Double values that are too large to be represented as Float values.

See Also

Single-Vector Precision Conversion

static func floatToDouble<U>(U) -> [Double]

Returns single-precision values converted to double-precision values.

static func doubleToFloat<U>(U) -> [Float]

Returns double-precision values converted to single-precision values.

static func convertElements<U, V>(of: U, to: inout V)

Converts double-precision values to single-precision values.

static func convertElements<U, V>(of: U, to: inout V)

Converts single-precision values to double-precision values.

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