Generic Initializer

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: SIMD16<Other>, rounding rule: FloatingPointRoundingRule = .towardZero) where Other : BinaryFloatingPoint, Other : SIMDScalar
Available when Scalar conforms to FixedWidthInteger.

Parameters

other

The vector to convert.

rule

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