Contents

floatingPointToInteger(_:integerType:rounding:)

Returns double-precision values converted to integer values.

Declaration

static func floatingPointToInteger<T, U>(_ vector: T, integerType: U.Type, rounding: vDSP.RoundingMode) -> [U] where T : AccelerateBuffer, U : vDSP_IntegerConvertable, T.Element == Double

Parameters

  • vector:

    The source vector.

  • integerType:

    The integer type that the function converts the source values to.

  • rounding:

    The rounding mode.

See Also

Type Methods