Generic Subscript

subscript(_:)

Extracts the scalars at specified indices to form a SIMD4.

Declaration

subscript<Index>(index: SIMD4<Index>) -> SIMD4<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.