Generic Type Method

doubleToFloat(_:)

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

Declaration

static func doubleToFloat<U>(_ source: U) -> [Float] where U : AccelerateBuffer, U.Element == Double

See Also

Single-Vector Precision Conversion

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

Returns single-precision values converted to double-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.