Contents

init(_:rounding:)

Creates a new vector from the given vector, rounding the given vector’s of elements using the specified rounding rule.

Declaration

init<Other>(_ other: SIMD8<Other>, rounding rule: FloatingPointRoundingRule = .towardZero) where Other : BinaryFloatingPoint, Other : SIMDScalar

Parameters

  • other:

    The vector to convert.

  • rule:

    The round rule to use when converting elements of other. The default is .towardZero.