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

# SIMD Implementations

## Topics

### Operators

[`static func & (Self, Self) -> Self`](/documentation/Swift/SIMD32/&(_:_:)-3y4ee)

[`static func & (Self, Self.Scalar) -> Self`](/documentation/Swift/SIMD32/&(_:_:)-5hn2d)

[`static func & (Self.Scalar, Self) -> Self`](/documentation/Swift/SIMD32/&(_:_:)-6m27n)

[`static func &* (Self, Self) -> Self`](/documentation/Swift/SIMD32/&*(_:_:)-18c2j)

[`static func &* (Self.Scalar, Self) -> Self`](/documentation/Swift/SIMD32/&*(_:_:)-39jwx)

[`static func &* (Self, Self.Scalar) -> Self`](/documentation/Swift/SIMD32/&*(_:_:)-7snfm)

[`static func &*= (inout Self, Self)`](/documentation/Swift/SIMD32/&*=(_:_:)-317ft)

[`static func &*= (inout Self, Self.Scalar)`](/documentation/Swift/SIMD32/&*=(_:_:)-4o8xl)

[`static func &+ (Self.Scalar, Self) -> Self`](/documentation/Swift/SIMD32/&+(_:_:)-2klka)

[`static func &+ (Self, Self.Scalar) -> Self`](/documentation/Swift/SIMD32/&+(_:_:)-5s8y2)

[`static func &+ (Self, Self) -> Self`](/documentation/Swift/SIMD32/&+(_:_:)-6wi7o)

[`static func &+= (inout Self, Self)`](/documentation/Swift/SIMD32/&+=(_:_:)-1ho7b)

[`static func &+= (inout Self, Self.Scalar)`](/documentation/Swift/SIMD32/&+=(_:_:)-579bp)

[`static func &- (Self, Self.Scalar) -> Self`](/documentation/Swift/SIMD32/&-(_:_:)-1e36y)

[`static func &- (Self.Scalar, Self) -> Self`](/documentation/Swift/SIMD32/&-(_:_:)-4705x)

[`static func &- (Self, Self) -> Self`](/documentation/Swift/SIMD32/&-(_:_:)-8s9k4)

[`static func &-= (inout Self, Self.Scalar)`](/documentation/Swift/SIMD32/&-=(_:_:)-594jw)

[`static func &-= (inout Self, Self)`](/documentation/Swift/SIMD32/&-=(_:_:)-5pn4x)

[`static func &= (inout Self, Self.Scalar)`](/documentation/Swift/SIMD32/&=(_:_:)-5eswa)

[`static func &= (inout Self, Self)`](/documentation/Swift/SIMD32/&=(_:_:)-9jgzy)

[`static func &<< (Self, Self.Scalar) -> Self`](/documentation/Swift/SIMD32/&__(_:_:)-29eng)

[`static func &>> (Self.Scalar, Self) -> Self`](/documentation/Swift/SIMD32/&__(_:_:)-4gsmr)

[`static func &>> (Self, Self.Scalar) -> Self`](/documentation/Swift/SIMD32/&__(_:_:)-78ish)

[`static func &<< (Self.Scalar, Self) -> Self`](/documentation/Swift/SIMD32/&__(_:_:)-7zqu8)

[`static func &>> (Self, Self) -> Self`](/documentation/Swift/SIMD32/&__(_:_:)-89xqs)

[`static func &<< (Self, Self) -> Self`](/documentation/Swift/SIMD32/&__(_:_:)-9hia9)

[`static func &>>= (inout Self, Self.Scalar)`](/documentation/Swift/SIMD32/&__=(_:_:)-3ali8)

[`static func &>>= (inout Self, Self)`](/documentation/Swift/SIMD32/&__=(_:_:)-762kk)

[`static func &<<= (inout Self, Self)`](/documentation/Swift/SIMD32/&__=(_:_:)-815bv)

[`static func &<<= (inout Self, Self.Scalar)`](/documentation/Swift/SIMD32/&__=(_:_:)-92dly)

[`static func * (Self.Scalar, Self) -> Self`](/documentation/Swift/SIMD32/*(_:_:)-2s55h)

[`static func * (Self, Self.Scalar) -> Self`](/documentation/Swift/SIMD32/*(_:_:)-418m6)

[`static func * (Self, Self.Scalar) -> Self`](/documentation/Swift/SIMD32/*(_:_:)-4x7hq)

[`static func * (Self.Scalar, Self) -> Self`](/documentation/Swift/SIMD32/*(_:_:)-7q0sz)

[`static func * (Self, Self) -> Self`](/documentation/Swift/SIMD32/*(_:_:)-7shb0)

[`static func * (Self, Self) -> Self`](/documentation/Swift/SIMD32/*(_:_:)-9qya8)

[`static func *= (inout Self, Self)`](/documentation/Swift/SIMD32/*=(_:_:)-1i0tm)

[`static func *= (inout Self, Self)`](/documentation/Swift/SIMD32/*=(_:_:)-36zit)

[`static func *= (inout Self, Self.Scalar)`](/documentation/Swift/SIMD32/*=(_:_:)-46f5z)

[`static func *= (inout Self, Self.Scalar)`](/documentation/Swift/SIMD32/*=(_:_:)-8kra8)

[`static func + (Self.Scalar, Self) -> Self`](/documentation/Swift/SIMD32/+(_:_:)-2phi3)

[`static func + (Self, Self) -> Self`](/documentation/Swift/SIMD32/+(_:_:)-473a4)

[`static func + (Self, Self.Scalar) -> Self`](/documentation/Swift/SIMD32/+(_:_:)-4w7pm)

[`static func + (Self.Scalar, Self) -> Self`](/documentation/Swift/SIMD32/+(_:_:)-59ak9)

[`static func + (Self, Self.Scalar) -> Self`](/documentation/Swift/SIMD32/+(_:_:)-5rl9l)

[`static func + (Self, Self) -> Self`](/documentation/Swift/SIMD32/+(_:_:)-tzme)

[`static func += (inout Self, Self.Scalar)`](/documentation/Swift/SIMD32/+=(_:_:)-2gvba)

[`static func += (inout Self, Self.Scalar)`](/documentation/Swift/SIMD32/+=(_:_:)-318n3)

[`static func += (inout Self, Self)`](/documentation/Swift/SIMD32/+=(_:_:)-6aukb)

[`static func += (inout Self, Self)`](/documentation/Swift/SIMD32/+=(_:_:)-9yj49)

[`static func - (Self) -> Self`](/documentation/Swift/SIMD32/-(_:))

[`static func - (Self, Self) -> Self`](/documentation/Swift/SIMD32/-(_:_:)-27153)

[`static func - (Self.Scalar, Self) -> Self`](/documentation/Swift/SIMD32/-(_:_:)-2zgvi)

[`static func - (Self, Self.Scalar) -> Self`](/documentation/Swift/SIMD32/-(_:_:)-4vvz)

[`static func - (Self, Self) -> Self`](/documentation/Swift/SIMD32/-(_:_:)-7rtph)

[`static func - (Self, Self.Scalar) -> Self`](/documentation/Swift/SIMD32/-(_:_:)-8y206)

[`static func - (Self.Scalar, Self) -> Self`](/documentation/Swift/SIMD32/-(_:_:)-ily3)

[`static func -= (inout Self, Self)`](/documentation/Swift/SIMD32/-=(_:_:)-1bm21)

[`static func -= (inout Self, Self)`](/documentation/Swift/SIMD32/-=(_:_:)-2aro2)

[`static func -= (inout Self, Self.Scalar)`](/documentation/Swift/SIMD32/-=(_:_:)-4c6ab)

[`static func -= (inout Self, Self.Scalar)`](/documentation/Swift/SIMD32/-=(_:_:)-6ujbc)

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

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

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

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

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

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

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

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

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

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

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

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

[`static func .< (Self, Self) -> SIMDMask<Self.MaskStorage>`](/documentation/Swift/SIMD32/._(_:_:)-28t6e)

Returns a vector mask with the result of a pointwise less than
comparison.

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

Returns a vector mask with the result of a pointwise greater than
comparison.

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

Returns a vector mask with the result of a pointwise greater than
comparison.

[`static func .< (Self, Self.Scalar) -> SIMDMask<Self.MaskStorage>`](/documentation/Swift/SIMD32/._(_:_:)-78u7r)

Returns a vector mask with the result of a pointwise less than comparison.

[`static func .< (Self.Scalar, Self) -> SIMDMask<Self.MaskStorage>`](/documentation/Swift/SIMD32/._(_:_:)-7bowa)

Returns a vector mask with the result of a pointwise less than comparison.

[`static func .> (Self, Self.Scalar) -> SIMDMask<Self.MaskStorage>`](/documentation/Swift/SIMD32/._(_:_:)-89ezy)

Returns a vector mask with the result of a pointwise greater than
comparison.

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

Returns a vector mask with the result of a pointwise greater than or
equal comparison.

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

Returns a vector mask with the result of a pointwise greater than or
equal comparison.

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

Returns a vector mask with the result of a pointwise less than or equal
comparison.

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

Returns a vector mask with the result of a pointwise less than or equal
comparison.

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

Returns a vector mask with the result of a pointwise greater than or
equal comparison.

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

Returns a vector mask with the result of a pointwise less than or equal
comparison.

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

Returns a Boolean value indicating whether two vectors are equal.

[`static func % (Self, Self) -> Self`](/documentation/Swift/SIMD32/_(_:_:)-34uwb)

[`static func | (Self, Self.Scalar) -> Self`](/documentation/Swift/SIMD32/_(_:_:)-3w1pz)

[`static func ^ (Self, Self) -> Self`](/documentation/Swift/SIMD32/_(_:_:)-414xo)

[`static func | (Self.Scalar, Self) -> Self`](/documentation/Swift/SIMD32/_(_:_:)-44n0x)

[`static func ^ (Self, Self.Scalar) -> Self`](/documentation/Swift/SIMD32/_(_:_:)-474ry)

[`static func / (Self.Scalar, Self) -> Self`](/documentation/Swift/SIMD32/_(_:_:)-4lwb2)

[`static func / (Self, Self) -> Self`](/documentation/Swift/SIMD32/_(_:_:)-4n158)

[`static func / (Self, Self) -> Self`](/documentation/Swift/SIMD32/_(_:_:)-4ucgx)

[`static func | (Self, Self) -> Self`](/documentation/Swift/SIMD32/_(_:_:)-50id9)

[`static func / (Self, Self.Scalar) -> Self`](/documentation/Swift/SIMD32/_(_:_:)-5j9uq)

[`static func ^ (Self.Scalar, Self) -> Self`](/documentation/Swift/SIMD32/_(_:_:)-5y65m)

[`static func % (Self, Self.Scalar) -> Self`](/documentation/Swift/SIMD32/_(_:_:)-6zy)

[`static func % (Self.Scalar, Self) -> Self`](/documentation/Swift/SIMD32/_(_:_:)-7fea3)

[`static func / (Self.Scalar, Self) -> Self`](/documentation/Swift/SIMD32/_(_:_:)-8nial)

[`static func / (Self, Self.Scalar) -> Self`](/documentation/Swift/SIMD32/_(_:_:)-pk1j)

[`static func |= (inout Self, Self.Scalar)`](/documentation/Swift/SIMD32/_=(_:_:)-11pnj)

[`static func %= (inout Self, Self)`](/documentation/Swift/SIMD32/_=(_:_:)-1vap7)

[`static func /= (inout Self, Self.Scalar)`](/documentation/Swift/SIMD32/_=(_:_:)-20gc6)

[`static func |= (inout Self, Self)`](/documentation/Swift/SIMD32/_=(_:_:)-26y2h)

[`static func /= (inout Self, Self)`](/documentation/Swift/SIMD32/_=(_:_:)-2dyv7)

[`static func /= (inout Self, Self)`](/documentation/Swift/SIMD32/_=(_:_:)-2okko)

[`static func ^= (inout Self, Self.Scalar)`](/documentation/Swift/SIMD32/_=(_:_:)-49dhy)

[`static func ^= (inout Self, Self)`](/documentation/Swift/SIMD32/_=(_:_:)-4prs)

[`static func /= (inout Self, Self.Scalar)`](/documentation/Swift/SIMD32/_=(_:_:)-66xdx)

[`static func %= (inout Self, Self.Scalar)`](/documentation/Swift/SIMD32/_=(_:_:)-8y875)

[`static func ~ (Self) -> Self`](/documentation/Swift/SIMD32/~(_:))

### Initializers

[`init<S>(S)`](/documentation/Swift/SIMD32/init(_:)-6afuc)

Creates a vector from the given sequence.

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

Creates a vector from the specified elements.

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

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

[`init(repeating: Self.Scalar)`](/documentation/Swift/SIMD32/init(repeating:)-1e473)

A vector with the specified scalar in all lanes.

### Instance Properties

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

A textual description of the vector.

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

The valid indices for subscripting the vector.

[`var leadingZeroBitCount: Self`](/documentation/Swift/SIMD32/leadingZeroBitCount)

[`var nonzeroBitCount: Self`](/documentation/Swift/SIMD32/nonzeroBitCount)

[`var trailingZeroBitCount: Self`](/documentation/Swift/SIMD32/trailingZeroBitCount)

### Instance Methods

[`func addProduct(Self.Scalar, Self)`](/documentation/Swift/SIMD32/addProduct(_:_:)-2e6v4)

[`func addProduct(Self, Self)`](/documentation/Swift/SIMD32/addProduct(_:_:)-65sbs)

[`func addProduct(Self, Self.Scalar)`](/documentation/Swift/SIMD32/addProduct(_:_:)-9epk7)

[`func addingProduct(Self, Self.Scalar) -> Self`](/documentation/Swift/SIMD32/addingProduct(_:_:)-7uual)

[`func addingProduct(Self, Self) -> Self`](/documentation/Swift/SIMD32/addingProduct(_:_:)-8gka)

[`func addingProduct(Self.Scalar, Self) -> Self`](/documentation/Swift/SIMD32/addingProduct(_:_:)-8svnk)

[`func clamp(lowerBound: Self, upperBound: Self)`](/documentation/Swift/SIMD32/clamp(lowerBound:upperBound:)-mfa1)

[`func clamp(lowerBound: Self, upperBound: Self)`](/documentation/Swift/SIMD32/clamp(lowerBound:upperBound:)-r8mu)

[`func clamped(lowerBound: Self, upperBound: Self) -> Self`](/documentation/Swift/SIMD32/clamped(lowerBound:upperBound:)-3fn6n)

[`func clamped(lowerBound: Self, upperBound: Self) -> Self`](/documentation/Swift/SIMD32/clamped(lowerBound:upperBound:)-5edvy)

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

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

[`func formSquareRoot()`](/documentation/Swift/SIMD32/formSquareRoot())

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

Hashes the elements of the vector using the given hasher.

[`func max() -> Self.Scalar`](/documentation/Swift/SIMD32/max()-36c8c)

The greatest scalar in the vector.

[`func max() -> Self.Scalar`](/documentation/Swift/SIMD32/max()-9t6zm)

The greatest element in the vector.

[`func min() -> Self.Scalar`](/documentation/Swift/SIMD32/min()-5cvw3)

The least element in the vector.

[`func min() -> Self.Scalar`](/documentation/Swift/SIMD32/min()-9a3ey)

The least scalar in the vector.

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

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

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

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

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

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/SIMD32/replacing(with:where:)-h40g)

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

[`func round(FloatingPointRoundingRule)`](/documentation/Swift/SIMD32/round(_:))

[`func rounded(FloatingPointRoundingRule) -> Self`](/documentation/Swift/SIMD32/rounded(_:))

A vector formed by rounding each lane of the source vector to an integral
value according to the specified rounding `rule`.

[`func squareRoot() -> Self`](/documentation/Swift/SIMD32/squareRoot())

[`func sum() -> Self.Scalar`](/documentation/Swift/SIMD32/sum())

The sum of the scalars in the vector.

[`func wrappedSum() -> Self.Scalar`](/documentation/Swift/SIMD32/wrappedSum())

Returns the sum of the scalars in the vector, computed with wrapping
addition.

### Type Properties

[`static var one: Self`](/documentation/Swift/SIMD32/one-13jdz)

A vector with one in all lanes.

[`static var one: Self`](/documentation/Swift/SIMD32/one-3mop8)

A vector with one in all lanes.

[`static var zero: Self`](/documentation/Swift/SIMD32/zero-2wd1r)

A vector with zero in all lanes.

[`static var zero: Self`](/documentation/Swift/SIMD32/zero-3kong)

A vector with zero in all lanes.

### Type Methods

[`static func random(in: ClosedRange<Self.Scalar>) -> Self`](/documentation/Swift/SIMD32/random(in:)-3w4wf)

Returns a vector with random values from within the specified range in
all lanes.

[`static func random(in: Range<Self.Scalar>) -> Self`](/documentation/Swift/SIMD32/random(in:)-82yup)

Returns a vector with random values from within the specified range in
all lanes.

[`static func random<T>(in: Range<Self.Scalar>, using: inout T) -> Self`](/documentation/Swift/SIMD32/random(in:using:)-7fl57)

Returns a vector with random values from within the specified range in
all lanes, using the given generator as a source for randomness.

[`static func random<T>(in: ClosedRange<Self.Scalar>, using: inout T) -> Self`](/documentation/Swift/SIMD32/random(in:using:)-7xfit)

Returns a vector with random values from within the specified range in
all lanes, using the given generator as a source for randomness.

---

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)