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

# SIMD Implementations

## Topics

### Operators

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

[`static func & (Self, Self) -> Self`](/documentation/Swift/SIMD3/&(_:_:)-6dadi)

[`static func & (Self, Self.Scalar) -> Self`](/documentation/Swift/SIMD3/&(_:_:)-9cv5x)

[`static func &* (Self, Self) -> Self`](/documentation/Swift/SIMD3/&*(_:_:)-1tpdr)

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

[`static func &* (Self.Scalar, Self) -> Self`](/documentation/Swift/SIMD3/&*(_:_:)-9lqx2)

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

[`static func &*= (inout Self, Self)`](/documentation/Swift/SIMD3/&*=(_:_:)-4uaeq)

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

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

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

[`static func &+= (inout Self, Self)`](/documentation/Swift/SIMD3/&+=(_:_:)-15hgq)

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

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

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

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

[`static func &-= (inout Self, Self.Scalar)`](/documentation/Swift/SIMD3/&-=(_:_:)-534bk)

[`static func &-= (inout Self, Self)`](/documentation/Swift/SIMD3/&-=(_:_:)-8d2rr)

[`static func &= (inout Self, Self.Scalar)`](/documentation/Swift/SIMD3/&=(_:_:)-583on)

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

[`static func &<< (Self, Self.Scalar) -> Self`](/documentation/Swift/SIMD3/&__(_:_:)-1cf4m)

[`static func &>> (Self, Self.Scalar) -> Self`](/documentation/Swift/SIMD3/&__(_:_:)-8w3ew)

[`static func &<< (Self, Self) -> Self`](/documentation/Swift/SIMD3/&__(_:_:)-92xk8)

[`static func &<< (Self.Scalar, Self) -> Self`](/documentation/Swift/SIMD3/&__(_:_:)-9j2cu)

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

[`static func &>> (Self, Self) -> Self`](/documentation/Swift/SIMD3/&__(_:_:)-on38)

[`static func &>>= (inout Self, Self)`](/documentation/Swift/SIMD3/&__=(_:_:)-2n11s)

[`static func &>>= (inout Self, Self.Scalar)`](/documentation/Swift/SIMD3/&__=(_:_:)-38a87)

[`static func &<<= (inout Self, Self)`](/documentation/Swift/SIMD3/&__=(_:_:)-7dkpa)

[`static func &<<= (inout Self, Self.Scalar)`](/documentation/Swift/SIMD3/&__=(_:_:)-83fu5)

[`static func * (Self, Self) -> Self`](/documentation/Swift/SIMD3/*(_:_:)-2hvzj)

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

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

[`static func * (Self, Self.Scalar) -> Self`](/documentation/Swift/SIMD3/*(_:_:)-50fba)

[`static func * (Self, Self) -> Self`](/documentation/Swift/SIMD3/*(_:_:)-6ktkg)

[`static func * (Self.Scalar, Self) -> Self`](/documentation/Swift/SIMD3/*(_:_:)-9wplu)

[`static func *= (inout Self, Self.Scalar)`](/documentation/Swift/SIMD3/*=(_:_:)-27oce)

[`static func *= (inout Self, Self.Scalar)`](/documentation/Swift/SIMD3/*=(_:_:)-3zjhs)

[`static func *= (inout Self, Self)`](/documentation/Swift/SIMD3/*=(_:_:)-4j0iv)

[`static func *= (inout Self, Self)`](/documentation/Swift/SIMD3/*=(_:_:)-5qujk)

[`static func + (Self, Self) -> Self`](/documentation/Swift/SIMD3/+(_:_:)-1h7rv)

[`static func + (Self, Self.Scalar) -> Self`](/documentation/Swift/SIMD3/+(_:_:)-1s6av)

[`static func + (Self, Self) -> Self`](/documentation/Swift/SIMD3/+(_:_:)-2bek1)

[`static func + (Self, Self.Scalar) -> Self`](/documentation/Swift/SIMD3/+(_:_:)-62q9z)

[`static func + (Self.Scalar, Self) -> Self`](/documentation/Swift/SIMD3/+(_:_:)-844rw)

[`static func + (Self.Scalar, Self) -> Self`](/documentation/Swift/SIMD3/+(_:_:)-9w8yd)

[`static func += (inout Self, Self)`](/documentation/Swift/SIMD3/+=(_:_:)-13ac4)

[`static func += (inout Self, Self.Scalar)`](/documentation/Swift/SIMD3/+=(_:_:)-33ge7)

[`static func += (inout Self, Self.Scalar)`](/documentation/Swift/SIMD3/+=(_:_:)-3islb)

[`static func += (inout Self, Self)`](/documentation/Swift/SIMD3/+=(_:_:)-4kezy)

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

[`static func - (Self, Self.Scalar) -> Self`](/documentation/Swift/SIMD3/-(_:_:)-1eqhb)

[`static func - (Self.Scalar, Self) -> Self`](/documentation/Swift/SIMD3/-(_:_:)-59t4d)

[`static func - (Self, Self) -> Self`](/documentation/Swift/SIMD3/-(_:_:)-5hurb)

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

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

[`static func - (Self, Self) -> Self`](/documentation/Swift/SIMD3/-(_:_:)-8vs62)

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

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

[`static func -= (inout Self, Self)`](/documentation/Swift/SIMD3/-=(_:_:)-8oysv)

[`static func -= (inout Self, Self)`](/documentation/Swift/SIMD3/-=(_:_:)-90eji)

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[`static func .> (Self.Scalar, Self) -> SIMDMask<Self.MaskStorage>`](/documentation/Swift/SIMD3/._(_:_:)-3inh2)

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

[`static func .< (Self, Self.Scalar) -> SIMDMask<Self.MaskStorage>`](/documentation/Swift/SIMD3/._(_:_:)-49xao)

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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/SIMD3/._=(_:_:)-5jyme)

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

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

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

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

Returns a Boolean value indicating whether two vectors are equal.

[`static func | (Self, Self) -> Self`](/documentation/Swift/SIMD3/_(_:_:)-1t3fs)

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

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

[`static func % (Self, Self) -> Self`](/documentation/Swift/SIMD3/_(_:_:)-2skh3)

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

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

[`static func / (Self, Self.Scalar) -> Self`](/documentation/Swift/SIMD3/_(_:_:)-3vpcf)

[`static func ^ (Self.Scalar, Self) -> Self`](/documentation/Swift/SIMD3/_(_:_:)-6f2o8)

[`static func ^ (Self, Self.Scalar) -> Self`](/documentation/Swift/SIMD3/_(_:_:)-6fu2f)

[`static func | (Self, Self.Scalar) -> Self`](/documentation/Swift/SIMD3/_(_:_:)-7v8x)

[`static func ^ (Self, Self) -> Self`](/documentation/Swift/SIMD3/_(_:_:)-7vf28)

[`static func % (Self.Scalar, Self) -> Self`](/documentation/Swift/SIMD3/_(_:_:)-9061v)

[`static func / (Self, Self) -> Self`](/documentation/Swift/SIMD3/_(_:_:)-936c1)

[`static func % (Self, Self.Scalar) -> Self`](/documentation/Swift/SIMD3/_(_:_:)-9i1nl)

[`static func / (Self, Self) -> Self`](/documentation/Swift/SIMD3/_(_:_:)-9io5d)

[`static func /= (inout Self, Self.Scalar)`](/documentation/Swift/SIMD3/_=(_:_:)-18ko5)

[`static func |= (inout Self, Self.Scalar)`](/documentation/Swift/SIMD3/_=(_:_:)-1tfky)

[`static func /= (inout Self, Self)`](/documentation/Swift/SIMD3/_=(_:_:)-5c1dl)

[`static func |= (inout Self, Self)`](/documentation/Swift/SIMD3/_=(_:_:)-6kg54)

[`static func %= (inout Self, Self)`](/documentation/Swift/SIMD3/_=(_:_:)-723if)

[`static func /= (inout Self, Self.Scalar)`](/documentation/Swift/SIMD3/_=(_:_:)-7u3yj)

[`static func ^= (inout Self, Self)`](/documentation/Swift/SIMD3/_=(_:_:)-8juvl)

[`static func %= (inout Self, Self.Scalar)`](/documentation/Swift/SIMD3/_=(_:_:)-9a0es)

[`static func /= (inout Self, Self)`](/documentation/Swift/SIMD3/_=(_:_:)-9ivy0)

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

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

### Initializers

[`init<S>(S)`](/documentation/Swift/SIMD3/init(_:)-3f00q)

Creates a vector from the given sequence.

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

Creates a vector from the specified elements.

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

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

[`init(repeating: Self.Scalar)`](/documentation/Swift/SIMD3/init(repeating:)-97v6a)

A vector with the specified scalar in all lanes.

### Instance Properties

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

A textual description of the vector.

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

The valid indices for subscripting the vector.

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

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

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

### Instance Methods

[`func addProduct(Self, Self)`](/documentation/Swift/SIMD3/addProduct(_:_:)-24nyp)

[`func addProduct(Self.Scalar, Self)`](/documentation/Swift/SIMD3/addProduct(_:_:)-48e6d)

[`func addProduct(Self, Self.Scalar)`](/documentation/Swift/SIMD3/addProduct(_:_:)-8hqma)

[`func addingProduct(Self, Self.Scalar) -> Self`](/documentation/Swift/SIMD3/addingProduct(_:_:)-1naql)

[`func addingProduct(Self.Scalar, Self) -> Self`](/documentation/Swift/SIMD3/addingProduct(_:_:)-76u4u)

[`func addingProduct(Self, Self) -> Self`](/documentation/Swift/SIMD3/addingProduct(_:_:)-94rr8)

[`func clamp(lowerBound: Self, upperBound: Self)`](/documentation/Swift/SIMD3/clamp(lowerBound:upperBound:)-77fkz)

[`func clamp(lowerBound: Self, upperBound: Self)`](/documentation/Swift/SIMD3/clamp(lowerBound:upperBound:)-9has1)

[`func clamped(lowerBound: Self, upperBound: Self) -> Self`](/documentation/Swift/SIMD3/clamped(lowerBound:upperBound:)-4qqqj)

[`func clamped(lowerBound: Self, upperBound: Self) -> Self`](/documentation/Swift/SIMD3/clamped(lowerBound:upperBound:)-8tjee)

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

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

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

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

Hashes the elements of the vector using the given hasher.

[`func max() -> Self.Scalar`](/documentation/Swift/SIMD3/max()-71ltd)

The greatest element in the vector.

[`func max() -> Self.Scalar`](/documentation/Swift/SIMD3/max()-xz2j)

The greatest scalar in the vector.

[`func min() -> Self.Scalar`](/documentation/Swift/SIMD3/min()-7qoof)

The least scalar in the vector.

[`func min() -> Self.Scalar`](/documentation/Swift/SIMD3/min()-8s36y)

The least element in the vector.

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

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/SIMD3/replace(with:where:)-7yqk1)

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/SIMD3/replacing(with:where:)-32h3i)

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/SIMD3/replacing(with:where:)-3o6zs)

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

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

[`func rounded(FloatingPointRoundingRule) -> Self`](/documentation/Swift/SIMD3/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/SIMD3/squareRoot())

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

The sum of the scalars in the vector.

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

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

### Type Properties

[`static var one: Self`](/documentation/Swift/SIMD3/one-1gjj3)

A vector with one in all lanes.

[`static var one: Self`](/documentation/Swift/SIMD3/one-7ehtb)

A vector with one in all lanes.

[`static var zero: Self`](/documentation/Swift/SIMD3/zero-1xegj)

A vector with zero in all lanes.

[`static var zero: Self`](/documentation/Swift/SIMD3/zero-6rmb2)

A vector with zero in all lanes.

### Type Methods

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

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

[`static func random(in: Range<Self.Scalar>) -> Self`](/documentation/Swift/SIMD3/random(in:)-6jj3m)

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

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

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: Range<Self.Scalar>, using: inout T) -> Self`](/documentation/Swift/SIMD3/random(in:using:)-7xbdr)

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)