<!--
{
  "documentType" : "article",
  "framework" : "Swift",
  "identifier" : "/documentation/Swift/SIMDMask/SIMD-Implementations",
  "metadataVersion" : "0.1.0",
  "role" : "collectionGroup",
  "title" : "SIMD Implementations"
}
-->

# SIMD Implementations

## Topics

### Operators

[`static func .!= (Self.Scalar, Self) -> SIMDMask<Self.MaskStorage>`](/documentation/Swift/SIMDMask/.!=(_:_:)-4o6ac)

Returns a vector mask with the result of a pointwise inequality comparison.

[`static func .!= (Self, Self) -> SIMDMask<Self.MaskStorage>`](/documentation/Swift/SIMDMask/.!=(_:_:)-5cnom)

A vector mask with the result of a pointwise inequality comparison.

[`static func .!= (Self, Self.Scalar) -> SIMDMask<Self.MaskStorage>`](/documentation/Swift/SIMDMask/.!=(_:_:)-94n12)

Returns a vector mask with the result of a pointwise inequality comparison.

[`static func .== (Self.Scalar, Self) -> SIMDMask<Self.MaskStorage>`](/documentation/Swift/SIMDMask/.==(_:_:)-4l749)

Returns a vector mask with the result of a pointwise equality comparison.

[`static func .== (Self, Self.Scalar) -> SIMDMask<Self.MaskStorage>`](/documentation/Swift/SIMDMask/.==(_:_:)-6aq3z)

Returns a vector mask with the result of a pointwise equality comparison.

[`static func .== (Self, Self) -> SIMDMask<Self.MaskStorage>`](/documentation/Swift/SIMDMask/.==(_:_:)-8vdyh)

A vector mask with the result of a pointwise equality comparison.

[`static func == (Self, Self) -> Bool`](/documentation/Swift/SIMDMask/==(_:_:))

Returns a Boolean value indicating whether two vectors are equal.

### Initializers

[`init<S>(S)`](/documentation/Swift/SIMDMask/init(_:))

Creates a vector from the given sequence.

[`init(arrayLiteral: Self.Scalar...)`](/documentation/Swift/SIMDMask/init(arrayLiteral:))

Creates a vector from the specified elements.

[`init(from: any Decoder) throws`](/documentation/Swift/SIMDMask/init(from:))

Creates a new vector by decoding scalars from the given decoder.

[`init(repeating: Self.Scalar)`](/documentation/Swift/SIMDMask/init(repeating:)-5pwub)

A vector with the specified scalar in all lanes.

### Instance Properties

[`var description: String`](/documentation/Swift/SIMDMask/description)

A textual description of the vector.

[`var indices: Range<Int>`](/documentation/Swift/SIMDMask/indices)

The valid indices for subscripting the vector.

### Instance Methods

[`func encode(to: any Encoder) throws`](/documentation/Swift/SIMDMask/encode(to:))

Encodes the scalars of this vector into the given encoder in an unkeyed
container.

[`func hash(into: inout Hasher)`](/documentation/Swift/SIMDMask/hash(into:))

Hashes the elements of the vector using the given hasher.

[`func replace(with: Self.Scalar, where: SIMDMask<Self.MaskStorage>)`](/documentation/Swift/SIMDMask/replace(with:where:)-6wonx)

Replaces elements of this vector with `other` in the lanes where `mask`
is `true`.

[`func replace(with: Self, where: SIMDMask<Self.MaskStorage>)`](/documentation/Swift/SIMDMask/replace(with:where:)-7bhx)

Replaces elements of this vector with elements of `other` in the lanes
where `mask` is `true`.

[`func replacing(with: Self, where: SIMDMask<Self.MaskStorage>) -> Self`](/documentation/Swift/SIMDMask/replacing(with:where:)-2gka4)

Returns a copy of this vector, with elements replaced by elements of
`other` in the lanes where `mask` is `true`.

[`func replacing(with: Self.Scalar, where: SIMDMask<Self.MaskStorage>) -> Self`](/documentation/Swift/SIMDMask/replacing(with:where:)-3lyjl)

Returns a copy of this vector, with elements `other` in the lanes where
`mask` is `true`.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)