<!--
{
  "availability" : [

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

# simd_short4

A vector of four 16-bit signed integer elements.

```
typealias simd_short4 = SIMD4<Int16>
```

## Topics

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

[`simd_make_short4(_:)`](/documentation/simd/simd_make_short4(_:)-6bvw4)

Returns a new vector from the specified two-element vector, and other elements set to zero.

[`simd_make_short4(_:)`](/documentation/simd/simd_make_short4(_:)-68qml)

Returns a new vector from the specified three-element vector, and other elements set to zero.

[`simd_make_short4(_:)`](/documentation/simd/simd_make_short4(_:)-662gm)

Returns a new vector from the specified vector.

[`simd_make_short4(_:)`](/documentation/simd/simd_make_short4(_:)-5rbcq)

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

[`simd_make_short4(_:)`](/documentation/simd/simd_make_short4(_:)-9muje)

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

[`simd_make_short4(_:)`](/documentation/simd/simd_make_short4(_:)-7tcxn)

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

[`simd_make_short4(_:_:)`](/documentation/simd/simd_make_short4(_:_:)-8h120)

Returns a new vector from the specified vectors.

[`vector4`](/documentation/simd/vector4-5h3is)

Returns a new vector from the specified vectors.

[`simd_make_short4_undef(_:)`](/documentation/simd/simd_make_short4_undef(_:)-8g0xr)

Returns a new vector from the specified two-element vector, and other elements undefined.

[`simd_make_short4_undef(_:)`](/documentation/simd/simd_make_short4_undef(_:)-8imcm)

Returns a new vector from the specified three-element vector, and other elements undefined.

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

[`simd_make_short4(_:)`](/documentation/simd/simd_make_short4(_:)-1emve)

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

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

Returns a new vector from the specified scalar values.

[`vector4`](/documentation/simd/vector4-42vpa)

Returns a new vector from the specified scalar values.

[`simd_make_short4_undef(_:)`](/documentation/simd/simd_make_short4_undef(_:)-36i14)

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

### Functions to Create Four-Element Vectors From Combinations of Vectors and Scalar Values

[`simd_make_short4(_:_:_:)`](/documentation/simd/simd_make_short4(_:_:_:)-6v1lj)

Returns a new vector from a vector and scalar values.

[`simd_make_short4(_:_:)`](/documentation/simd/simd_make_short4(_:_:)-8tpr6)

Returns a new vector from a vector and a scalar value.

[`vector4`](/documentation/simd/vector4-8l9kg)

Returns a new vector from a vector and a scalar value.

[`simd_make_short4(_:_:_:)`](/documentation/simd/simd_make_short4(_:_:_:)-34dcj)

Returns a new vector from two scalar values and a vector.

[`simd_make_short4(_:_:_:)`](/documentation/simd/simd_make_short4(_:_:_:)-21v12)

Returns a new vector from a scalar value, a vector, and a scalar value.

[`simd_make_short4(_:_:)`](/documentation/simd/simd_make_short4(_:_:)-46aby)

Returns a new vector from a scalar value and a vector.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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-3gjfp)

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

### Common Functions

[`simd_abs(_:)`](/documentation/simd/simd_abs(_:)-81n9o)

Returns the absolute value of each element in a vector.

[`simd_clamp(_:_:_:)`](/documentation/simd/simd_clamp(_:_:_:)-3fip1)

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

[`simd_equal(_:_:)`](/documentation/simd/simd_equal(_:_:)-51wsu)

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(_:)-4uj62)

Returns the miniumum value in a vector.

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

Returns the maximum value in a vector.

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

Returns the sum of all elements in a vector.

### Extrema Functions

[`simd_min(_:_:)`](/documentation/simd/simd_min(_:_:)-3w6s9)

Returns the minimum value of each element in a vector.

[`simd_max(_:_:)`](/documentation/simd/simd_max(_:_:)-7xxnr)

Returns the maximum value of each element in a vector.

### Logic and Bitwise Functions

[`simd_any(_:)`](/documentation/simd/simd_any(_:)-6cn5f)

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

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

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_short4`](/documentation/simd/vector_short4)



---

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)