Generic Subscript

subscript(_:)

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

Declaration 宣言

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

See Also 参照

SIMD Implementations SIMD実装