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

# SIMD Implementations

## Topics

### Operators

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

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

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

[`static func &* (Self, Self) -> Self`](/documentation/Swift/SIMD16/&*(_:_:)-110zd)

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

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

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

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

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

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

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

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

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

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

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

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

[`static func &-= (inout Self, Self.Scalar)`](/documentation/Swift/SIMD16/&-=(_:_:)-51lye)

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

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

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

[`static func &<< (Self, Self.Scalar) -> Self`](/documentation/Swift/SIMD16/&__(_:_:)-2ftme)

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

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

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

[`static func &>> (Self, Self) -> Self`](/documentation/Swift/SIMD16/&__(_:_:)-82fce)

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

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

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

[`static func &<<= (inout Self, Self)`](/documentation/Swift/SIMD16/&__=(_:_:)-88lh5)

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

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

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

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

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

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

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

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

[`static func *= (inout Self, Self)`](/documentation/Swift/SIMD16/*=(_:_:)-2zjkv)

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

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

[`static func + (Self, Self) -> Self`](/documentation/Swift/SIMD16/+(_:_:)-10ebw)

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

[`static func + (Self, Self) -> Self`](/documentation/Swift/SIMD16/+(_:_:)-40yo6)

[`static func + (Self.Scalar, Self) -> Self`](/documentation/Swift/SIMD16/+(_:_:)-52yaj)

[`static func + (Self, Self.Scalar) -> Self`](/documentation/Swift/SIMD16/+(_:_:)-53q5k)

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

[`static func += (inout Self, Self.Scalar)`](/documentation/Swift/SIMD16/+=(_:_:)-29mqk)

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

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

[`static func += (inout Self, Self)`](/documentation/Swift/SIMD16/+=(_:_:)-63jfd)

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

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

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

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

[`static func - (Self, Self.Scalar) -> Self`](/documentation/Swift/SIMD16/-(_:_:)-946vg)

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

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

[`static func -= (inout Self, Self)`](/documentation/Swift/SIMD16/-=(_:_:)-15h6z)

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

[`static func -= (inout Self, Self.Scalar)`](/documentation/Swift/SIMD16/-=(_:_:)-44xi9)

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[`static func .> (Self.Scalar, Self) -> SIMDMask<Self.MaskStorage>`](/documentation/Swift/SIMD16/._(_:_:)-436q8)

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

[`static func .< (Self, Self.Scalar) -> SIMDMask<Self.MaskStorage>`](/documentation/Swift/SIMD16/._(_:_:)-71lm5)

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

[`static func .> (Self, Self) -> SIMDMask<Self.MaskStorage>`](/documentation/Swift/SIMD16/._(_:_:)-73ut0)

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

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

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

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

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

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

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

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

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/SIMD16/._=(_:_:)-52esm)

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

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

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

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/SIMD16/._=(_:_:)-9s9fk)

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

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

Returns a Boolean value indicating whether two vectors are equal.

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

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

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

[`static func | (Self, Self.Scalar) -> Self`](/documentation/Swift/SIMD16/_(_:_:)-42gh9)

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

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

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

[`static func / (Self, Self) -> Self`](/documentation/Swift/SIMD16/_(_:_:)-50opv)

[`static func | (Self, Self) -> Self`](/documentation/Swift/SIMD16/_(_:_:)-57tav)

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

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

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

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

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

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

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

[`static func %= (inout Self, Self)`](/documentation/Swift/SIMD16/_=(_:_:)-21f7t)

[`static func /= (inout Self, Self)`](/documentation/Swift/SIMD16/_=(_:_:)-26qa9)

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

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

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

[`static func /= (inout Self, Self.Scalar)`](/documentation/Swift/SIMD16/_=(_:_:)-60irj)

[`static func %= (inout Self, Self.Scalar)`](/documentation/Swift/SIMD16/_=(_:_:)-95j6b)

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

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

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

### Initializers

[`init<S>(S)`](/documentation/Swift/SIMD16/init(_:)-64awu)

Creates a vector from the given sequence.

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

Creates a vector from the specified elements.

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

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

[`init(repeating: Self.Scalar)`](/documentation/Swift/SIMD16/init(repeating:)-16o1h)

A vector with the specified scalar in all lanes.

### Instance Properties

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

A textual description of the vector.

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

The valid indices for subscripting the vector.

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

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

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

### Instance Methods

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

[`func addProduct(Self, Self)`](/documentation/Swift/SIMD16/addProduct(_:_:)-5yjpm)

[`func addProduct(Self, Self.Scalar)`](/documentation/Swift/SIMD16/addProduct(_:_:)-97gsd)

[`func addingProduct(Self, Self.Scalar) -> Self`](/documentation/Swift/SIMD16/addingProduct(_:_:)-816br)

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

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

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

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

[`func clamped(lowerBound: Self, upperBound: Self) -> Self`](/documentation/Swift/SIMD16/clamped(lowerBound:upperBound:)-38es5)

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

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

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

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

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

Hashes the elements of the vector using the given hasher.

[`func max() -> Self.Scalar`](/documentation/Swift/SIMD16/max()-2yw9y)

The greatest scalar in the vector.

[`func max() -> Self.Scalar`](/documentation/Swift/SIMD16/max()-ap)

The greatest element in the vector.

[`func min() -> Self.Scalar`](/documentation/Swift/SIMD16/min()-55nb5)

The least element in the vector.

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

The least scalar in the vector.

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

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/SIMD16/replace(with:where:)-9cks4)

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/SIMD16/replacing(with:where:)-42oan)

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/SIMD16/replacing(with:where:)-ng2a)

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

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

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

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

The sum of the scalars in the vector.

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

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

### Type Properties

[`static var one: Self`](/documentation/Swift/SIMD16/one-1azcd)

A vector with one in all lanes.

[`static var one: Self`](/documentation/Swift/SIMD16/one-3gc92)

A vector with one in all lanes.

[`static var zero: Self`](/documentation/Swift/SIMD16/zero-33lnp)

A vector with zero in all lanes.

[`static var zero: Self`](/documentation/Swift/SIMD16/zero-3dg4m)

A vector with zero in all lanes.

### Type Methods

[`static func random(in: ClosedRange<Self.Scalar>) -> Self`](/documentation/Swift/SIMD16/random(in:)-42m5x)

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

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

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/SIMD16/random(in:using:)-78ch5)

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/SIMD16/random(in:using:)-7rau7)

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)