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

# SIMD Implementations

## Topics

### Operators

[`static func & (Self, Self) -> Self`](/documentation/Swift/SIMD64/&(_:_:)-48kwh)

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

[`static func & (Self.Scalar, Self) -> Self`](/documentation/Swift/SIMD64/&(_:_:)-659cg)

[`static func &* (Self.Scalar, Self) -> Self`](/documentation/Swift/SIMD64/&*(_:_:)-3k94q)

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

[`static func &* (Self, Self) -> Self`](/documentation/Swift/SIMD64/&*(_:_:)-rfmc)

[`static func &*= (inout Self, Self)`](/documentation/Swift/SIMD64/&*=(_:_:)-2qjaa)

[`static func &*= (inout Self, Self.Scalar)`](/documentation/Swift/SIMD64/&*=(_:_:)-551ly)

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

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

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

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

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

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

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

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

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

[`static func &-= (inout Self, Self)`](/documentation/Swift/SIMD64/&-=(_:_:)-67jym)

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

[`static func &= (inout Self, Self)`](/documentation/Swift/SIMD64/&=(_:_:)-98sr1)

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

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

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

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

[`static func &>> (Self, Self) -> Self`](/documentation/Swift/SIMD64/&__(_:_:)-8keg3)

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

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

[`static func &>>= (inout Self, Self)`](/documentation/Swift/SIMD64/&__=(_:_:)-6veiv)

[`static func &<<= (inout Self, Self)`](/documentation/Swift/SIMD64/&__=(_:_:)-8i87o)

[`static func &<<= (inout Self, Self.Scalar)`](/documentation/Swift/SIMD64/&__=(_:_:)-8rzj9)

[`static func * (Self.Scalar, Self) -> Self`](/documentation/Swift/SIMD64/*(_:_:)-38y62)

[`static func * (Self, Self.Scalar) -> Self`](/documentation/Swift/SIMD64/*(_:_:)-3kbvd)

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

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

[`static func * (Self.Scalar, Self) -> Self`](/documentation/Swift/SIMD64/*(_:_:)-80pyw)

[`static func * (Self, Self) -> Self`](/documentation/Swift/SIMD64/*(_:_:)-99vn7)

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

[`static func *= (inout Self, Self)`](/documentation/Swift/SIMD64/*=(_:_:)-3ntoe)

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

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

[`static func + (Self.Scalar, Self) -> Self`](/documentation/Swift/SIMD64/+(_:_:)-27h1w)

[`static func + (Self, Self) -> Self`](/documentation/Swift/SIMD64/+(_:_:)-3wpa7)

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

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

[`static func + (Self, Self.Scalar) -> Self`](/documentation/Swift/SIMD64/+(_:_:)-69rpi)

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

[`static func += (inout Self, Self.Scalar)`](/documentation/Swift/SIMD64/+=(_:_:)-26hfp)

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

[`static func += (inout Self, Self)`](/documentation/Swift/SIMD64/+=(_:_:)-5sues)

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

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

[`static func - (Self, Self) -> Self`](/documentation/Swift/SIMD64/-(_:_:)-1q4hs)

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

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

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

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

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

[`static func -= (inout Self, Self)`](/documentation/Swift/SIMD64/-=(_:_:)-117zm)

[`static func -= (inout Self, Self)`](/documentation/Swift/SIMD64/-=(_:_:)-20ca5)

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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/SIMD64/._=(_:_:)-34q4)

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

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

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/SIMD64/._=(_:_:)-4y5lb)

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

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

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/SIMD64/._=(_:_:)-6dy5p)

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

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

Returns a Boolean value indicating whether two vectors are equal.

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

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

[`static func % (Self, Self) -> Self`](/documentation/Swift/SIMD64/_(_:_:)-3mrhw)

[`static func ^ (Self, Self) -> Self`](/documentation/Swift/SIMD64/_(_:_:)-3rknz)

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

[`static func ^ (Self, Self.Scalar) -> Self`](/documentation/Swift/SIMD64/_(_:_:)-4p1dd)

[`static func / (Self, Self) -> Self`](/documentation/Swift/SIMD64/_(_:_:)-53v87)

[`static func | (Self, Self) -> Self`](/documentation/Swift/SIMD64/_(_:_:)-5axk6)

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

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

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

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

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

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

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

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

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

[`static func |= (inout Self, Self)`](/documentation/Swift/SIMD64/_=(_:_:)-2nqna)

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

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

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

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

[`static func %= (inout Self, Self.Scalar)`](/documentation/Swift/SIMD64/_=(_:_:)-98nne)

[`static func ^= (inout Self, Self)`](/documentation/Swift/SIMD64/_=(_:_:)-9mati)

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

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

### Initializers

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

Creates a vector from the given sequence.

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

Creates a vector from the specified elements.

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

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

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

A vector with the specified scalar in all lanes.

### Instance Properties

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

A textual description of the vector.

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

The valid indices for subscripting the vector.

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

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

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

### Instance Methods

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

[`func addProduct(Self, Self)`](/documentation/Swift/SIMD64/addProduct(_:_:)-6gitz)

[`func addProduct(Self, Self.Scalar)`](/documentation/Swift/SIMD64/addProduct(_:_:)-94bac)

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

[`func addingProduct(Self.Scalar, Self) -> Self`](/documentation/Swift/SIMD64/addingProduct(_:_:)-99pn7)

[`func addingProduct(Self, Self) -> Self`](/documentation/Swift/SIMD64/addingProduct(_:_:)-ivsx)

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

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

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

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

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

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

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

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

Hashes the elements of the vector using the given hasher.

[`func max() -> Self.Scalar`](/documentation/Swift/SIMD64/max()-3n69z)

The greatest scalar in the vector.

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

The greatest element in the vector.

[`func min() -> Self.Scalar`](/documentation/Swift/SIMD64/min()-52hug)

The least element in the vector.

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

The least scalar in the vector.

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

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/SIMD64/replace(with:where:)-99fgt)

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

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/SIMD64/replacing(with:where:)-xwqn)

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

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

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

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

The sum of the scalars in the vector.

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

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

### Type Properties

[`static var one: Self`](/documentation/Swift/SIMD64/one-1lpug)

A vector with one in all lanes.

[`static var one: Self`](/documentation/Swift/SIMD64/one-44mp3)

A vector with one in all lanes.

[`static var zero: Self`](/documentation/Swift/SIMD64/zero-2faik)

A vector with zero in all lanes.

[`static var zero: Self`](/documentation/Swift/SIMD64/zero-3vf97)

A vector with zero in all lanes.

### Type Methods

[`static func random(in: ClosedRange<Self.Scalar>) -> Self`](/documentation/Swift/SIMD64/random(in:)-46u2s)

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

[`static func random(in: Range<Self.Scalar>) -> Self`](/documentation/Swift/SIMD64/random(in:)-8do2i)

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/SIMD64/random(in:using:)-7qbkk)

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/SIMD64/random(in:using:)-8863m)

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)