Operator 演算子

.!(_:)

A vector mask that is the pointwise logical negation of the input. この入力のポイント単位論理否定であるベクターマスク。

Declaration 宣言

prefix static func .! (a: SIMDMask<Storage>) -> SIMDMask<Storage>
Available when Storage is SIMD4<Int32>. StorageSIMD4<Int32>である時に利用可能です。

Discussion 解説

Equivalent to: 次に等しい:


var result = SIMDMask<SIMD4<Int32>>()
for i in result.indices {
  result[i] = !a[i]
}