Function

vDSP_vspdp(_:_:_:_:_:)

Vector convert single-precision to double-precision.

Declaration

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

Parameters

__A

Single-precision real input vector.

__IA

Address stride for A.

__C

Double-precision real output vector.

__IC

Address stride for C.

__N

The number of elements to process.

Discussion

Creates double-precision vector C by converting single-precision inputs from vector A. This function can only be done out of place.

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