Contents

convertElements(of:to:rounding:)

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

Declaration

static func convertElements<U, V>(of source: U, to destination: inout V, rounding: vDSP.RoundingMode) where U : AccelerateBuffer, V : AccelerateMutableBuffer, U.Element == Float, V.Element == Int16

Parameters

  • source:

    The source vector.

  • destination:

    On output, the source values converted to integer values.

  • rounding:

    The rounding mode.

See Also

Type Methods