Contents

.>(_:_:)

Pointwise compare greater than.

Declaration

static func .> (a: Scalar, b: SIMD4<Scalar>) -> SIMDMask<SIMD4<Scalar>.MaskStorage>

Discussion

Each lane of the result is true if a is greater than the corresponding lane of b, and false otherwise.

Equivalent to:

var result = SIMDMask<MaskStorage>()
for i in 0..<4 {
  result[i] = (a > b[i])
}