Generic Subscript

subscript(_:)

Extracts the scalars at specified indices to form a SIMD2. 形式SIMD2への指定インデックスそれらでのスカラーを抽出します。

Declaration 宣言

subscript<Index>(index: SIMD2<Index>) -> SIMD2<Bool> where Index : FixedWidthInteger, Index : 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. インデックスベクターの要素は、このベクターの中の要素の数によるモジュロでラップされます。このために、インデックスは常に範囲内です、そしてトラップは起こりえません。