Generic Subscript

subscript(_:)

Extracts the scalars at specified indices to form a SIMD3.

Declaration

subscript<Index>(index: SIMD3<Index>) -> SIMD3<Scalar> where Index : FixedWidthInteger, Index : SIMDScalar, Self.Scalar : SIMDScalar { get }

Discussion

The elements of the index vector are wrapped modulo the count of elements in this vector. Because of this, the index is always in-range and no trap can occur.