<!--
{
  "availability" : [

  ],
  "documentType" : "symbol",
  "framework" : "Accelerate",
  "identifier" : "/documentation/simd/simd_short2",
  "metadataVersion" : "0.1.0",
  "role" : "Type Alias",
  "symbol" : {
    "kind" : "Type Alias",
    "modules" : [
      "simd"
    ],
    "preciseIdentifier" : "c:@T@simd_short2"
  },
  "title" : "simd_short2"
}
-->

# simd_short2

A vector of two 16-bit signed integer elements.

```
typealias simd_short2 = SIMD2<Int16>
```

## Topics

### Functions to Create Two-Element Vectors From Other Vectors

[`simd_make_short2(_:)`](/documentation/simd/simd_make_short2(_:)-6juuy)

Returns a new vector from the specified vector.

[`simd_make_short2(_:)`](/documentation/simd/simd_make_short2(_:)-6gmv7)

Returns a new vector by truncating the specified three-element vector.

[`simd_make_short2(_:)`](/documentation/simd/simd_make_short2(_:)-5z7ps)

Returns a new vector by truncating the specified four-element vector.

[`simd_make_short2(_:)`](/documentation/simd/simd_make_short2(_:)-74zg4)

Returns a new vector by truncating the specified eight-element vector.

[`simd_make_short2(_:)`](/documentation/simd/simd_make_short2(_:)-58qns)

Returns a new vector by truncating the specified sixteen-element vector.

[`simd_make_short2(_:)`](/documentation/simd/simd_make_short2(_:)-6bz90)

Returns a new vector by truncating the specified thirty two-element vector.

### Functions to Create Two-Element Vectors From Scalar Values

[`simd_make_short2(_:)`](/documentation/simd/simd_make_short2(_:)-222xa)

Returns a new vector with the first element set to a scalar value, and other elements set to zero.

[`simd_make_short2(_:_:)`](/documentation/simd/simd_make_short2(_:_:))

Returns a new vector from the specified scalar values.

[`vector2`](/documentation/simd/vector2-5ek7j)

Returns a new vector from the specified scalar values.

[`simd_make_short2_undef(_:)`](/documentation/simd/simd_make_short2_undef(_:))

Returns a new vector with the first element set to a scalar value, and other elements undefined.

### Functions to Create Two-Element Vectors From Vectors of Other Types

[`simd_short`](/documentation/simd/simd_short-6f37y)

Returns a new vector from the specified vector of 8-bit, signed integer elements.

[`simd_short`](/documentation/simd/simd_short-6et5a)

Returns a new vector from the specified vector of 8-bit, unsigned integer elements.

[`simd_short`](/documentation/simd/simd_short-6ey3y)

Returns a new vector from the specified vector of 16-bit, signed integer elements.

[`simd_short`](/documentation/simd/simd_short-6eoa6)

Returns a new vector from the specified vector of 16-bit, unsigned integer elements.

[`simd_short`](/documentation/simd/simd_short-6f6bm)

Returns a new vector from the specified vector of 32-bit, signed integer elements.

[`simd_short`](/documentation/simd/simd_short-6ewci)

Returns a new vector from the specified vector of 32-bit, unsigned integer elements.

[`simd_short`](/documentation/simd/simd_short-6f4tm)

Returns a new vector from the specified vector of 64-bit, signed integer elements.

[`simd_short`](/documentation/simd/simd_short-6eusq)

Returns a new vector from the specified vector of 64-bit, unsigned integer elements.

[`simd_short`](/documentation/simd/simd_short-6erke)

Returns a new vector from the specified vector of 32-bit, floating-point elements.

[`simd_short`](/documentation/simd/simd_short-6esiy)

Returns a new vector from the specified vector of 64-bit, floating-point elements.

### Functions to Perform Saturating Conversion From Vectors of Other Types

[`simd_short_sat`](/documentation/simd/simd_short_sat-3md2f)

Returns a new vector from the specified vector of 8-bit, signed integer elements.

[`simd_short_sat`](/documentation/simd/simd_short_sat-3mn6v)

Returns a new vector from the specified vector of 8-bit, unsigned integer elements.

[`simd_short_sat`](/documentation/simd/simd_short_sat-3m83r)

Returns a new vector from the specified vector of 16-bit, signed integer elements.

[`simd_short_sat`](/documentation/simd/simd_short_sat-3mi6f)

Returns a new vector from the specified vector of 16-bit, unsigned integer elements.

[`simd_short_sat`](/documentation/simd/simd_short_sat-3mg4b)

Returns a new vector from the specified vector of 32-bit, signed integer elements.

[`simd_short_sat`](/documentation/simd/simd_short_sat-3mqaj)

Returns a new vector from the specified vector of 32-bit, unsigned integer elements.

[`simd_short_sat`](/documentation/simd/simd_short_sat-3mfdp)

Returns a new vector from the specified vector of 64-bit, signed integer elements.

[`simd_short_sat`](/documentation/simd/simd_short_sat-3mpct)

Returns a new vector from the specified vector of 64-bit, unsigned integer elements.

[`simd_short_sat`](/documentation/simd/simd_short_sat-3mm1h)

Returns a new vector from the specified vector of 32-bit, floating point elements.

[`simd_short_sat`](/documentation/simd/simd_short_sat-3mmpp)

Returns a new vector from the specified vector of 64-bit, floating point elements.

### Common Functions

[`simd_abs(_:)`](/documentation/simd/simd_abs(_:)-88dfi)

Returns the absolute value of each element in a vector.

[`simd_clamp(_:_:_:)`](/documentation/simd/simd_clamp(_:_:_:)-5qqhe)

Returns each element in a vector clamped to a specified range.

[`simd_equal(_:_:)`](/documentation/simd/simd_equal(_:_:)-6gad6)

Returns true if every element in a vector is exactly equal to the corresponding element in a second vector, and otherwise returns false.

### Reduce Functions

[`simd_reduce_min(_:)`](/documentation/simd/simd_reduce_min(_:)-49c4w)

Returns the miniumum value in a vector.

[`simd_reduce_max(_:)`](/documentation/simd/simd_reduce_max(_:)-4kmuw)

Returns the maximum value in a vector.

[`simd_reduce_add(_:)`](/documentation/simd/simd_reduce_add(_:)-2q65m)

Returns the sum of all elements in a vector.

### Extrema Functions

[`simd_min(_:_:)`](/documentation/simd/simd_min(_:_:)-13ip4)

Returns the minimum value of each element in a vector.

[`simd_max(_:_:)`](/documentation/simd/simd_max(_:_:)-6w9rg)

Returns the maximum value of each element in a vector.

### Logic and Bitwise Functions

[`simd_any(_:)`](/documentation/simd/simd_any(_:)-64jj5)

[`simd_all(_:)`](/documentation/simd/simd_all(_:)-1d5nj)

[`simd_bitselect(_:_:_:)`](/documentation/simd/simd_bitselect(_:_:_:)-625jo)

Returns a vector that contains elements from either the first or second parameter, based on the corresponding element in the third parameter.

### Alternative Type Alias

[`vector_short2`](/documentation/simd/vector_short2)



---

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)