<!--
{
  "availability" : [

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

# simd_half32

A vector of thirty-two 16-bit floating-point elements.

```
typealias simd_half32 = SIMD32<Float16>
```

## Topics

### Functions to create 32-element vectors from other vectors

[`simd_make_half32(_:)`](/documentation/simd/simd_make_half32(_:)-8obpe)

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

[`simd_make_half32(_:)`](/documentation/simd/simd_make_half32(_:)-8kum5)

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

[`simd_make_half32(_:)`](/documentation/simd/simd_make_half32(_:)-82w1c)

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

[`simd_make_half32(_:)`](/documentation/simd/simd_make_half32(_:)-997h0)

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

[`simd_make_half32(_:)`](/documentation/simd/simd_make_half32(_:)-6xe53)

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

[`simd_make_half32(_:)`](/documentation/simd/simd_make_half32(_:)-80qof)

Returns a new vector from the specified vector.

[`simd_make_half32_undef(_:)`](/documentation/simd/simd_make_half32_undef(_:)-3w7jb)

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

[`simd_make_half32_undef(_:)`](/documentation/simd/simd_make_half32_undef(_:)-3yzwk)

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

[`simd_make_half32_undef(_:)`](/documentation/simd/simd_make_half32_undef(_:)-42h8l)

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

[`simd_make_half32_undef(_:)`](/documentation/simd/simd_make_half32_undef(_:)-4gyi9)

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

[`simd_make_half32_undef(_:)`](/documentation/simd/simd_make_half32_undef(_:)-9hc0w)

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

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

Returns a new vector from the specified vectors.

### Functions to create 32-element vectors from scalar values

[`simd_make_half32(_:)`](/documentation/simd/simd_make_half32(_:)-4hl1s)

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

[`simd_make_half32_undef(_:)`](/documentation/simd/simd_make_half32_undef(_:)-65xeg)

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

### Common functions

[`simd_abs(_:)`](/documentation/simd/simd_abs(_:)-2byol)

Returns the absolute value of each element in a vector.

[`simd_clamp(_:_:_:)`](/documentation/simd/simd_clamp(_:_:_:)-868pk)

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

[`simd_equal(_:_:)`](/documentation/simd/simd_equal(_:_:)-5620v)

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

[`simd_fract(_:)`](/documentation/simd/simd_fract(_:)-4zj0y)

Returns the fractional part of each element in a vector.

[`simd_sign(_:)`](/documentation/simd/simd_sign(_:)-9r24j)

Returns the sign of each element in a vector.

[`simd_step(_:_:)`](/documentation/simd/simd_step(_:_:)-2kbac)

Returns zero for each element in a vector less than a specified edge, and otherwise returns one.

### Reduce functions

[`simd_reduce_add(_:)`](/documentation/simd/simd_reduce_add(_:)-1urk1)

Returns the sum of all elements in a vector.

[`simd_reduce_max(_:)`](/documentation/simd/simd_reduce_max(_:)-9itok)

Returns the maximum value in a vector.

[`simd_reduce_min(_:)`](/documentation/simd/simd_reduce_min(_:)-2b1zw)

Returns the minimum value in a vector.

### Interpolation functions

[`simd_mix(_:_:_:)`](/documentation/simd/simd_mix(_:_:_:)-4qwly)

Returns an element-wise linearly interpolated value between two vectors.

[`simd_smoothstep(_:_:_:)`](/documentation/simd/simd_smoothstep(_:_:_:)-6nnf0)

Returns an element-wise smoothly interpolated value between two vectors.

### Extrema functions

[`simd_max(_:_:)`](/documentation/simd/simd_max(_:_:)-2y7nk)

Returns the maximum value of each element in a vector.

[`simd_min(_:_:)`](/documentation/simd/simd_min(_:_:)-10jj2)

Returns the minimum value of each element in a vector.

### Reciprocal and reciprocal square root functions

[`simd_recip(_:)`](/documentation/simd/simd_recip(_:)-6hfwj)

Returns the reciprocal of each element in a vector.

[`simd_rsqrt(_:)`](/documentation/simd/simd_rsqrt(_:)-60bll)

Returns the reciprocal square root of each element in a vector.

[`simd_precise_recip(_:)`](/documentation/simd/simd_precise_recip(_:)-22hxl)

Returns the precise reciprocal of each element in a vector.

[`simd_precise_rsqrt(_:)`](/documentation/simd/simd_precise_rsqrt(_:)-8ce7i)

Returns the precise reciprocal square root of each element in a vector.

[`simd_fast_recip(_:)`](/documentation/simd/simd_fast_recip(_:)-2i3al)

Returns the fast reciprocal of each element in a vector.

[`simd_fast_rsqrt(_:)`](/documentation/simd/simd_fast_rsqrt(_:)-2sbqs)

Returns the fast reciprocal square root of each element in a vector.

### Geometry functions

[`simd_dot`](/documentation/simd/simd_dot-14m5i)

Returns the dot product of two vectors.

[`simd_normalize`](/documentation/simd/simd_normalize-4thje)

Returns a vector pointing in the same direction of the supplied vector, with a length of 1.

[`simd_fast_normalize`](/documentation/simd/simd_fast_normalize-1kyde)

Returns the fast normalized vector.

[`simd_precise_normalize`](/documentation/simd/simd_precise_normalize-3zlx2)

Returns the precise normalized vector.

[`simd_project`](/documentation/simd/simd_project-40ksg)

Returns the first vector projected onto the second vector.

[`simd_precise_project`](/documentation/simd/simd_precise_project-8q7gz)

Returns the precise projected vector.

[`simd_fast_project`](/documentation/simd/simd_fast_project-56rgk)

Returns the fast projected vector.

### Vector norm functions

[`simd_norm_one`](/documentation/simd/simd_norm_one-jtbh)

Returns the sum of the absolute values of a vector.

[`simd_norm_inf`](/documentation/simd/simd_norm_inf-74hug)

Returns the maximum absolute value of a vector.

### Length and distance functions

[`simd_length`](/documentation/simd/simd_length-zvvu)

Returns the length of a vector.

[`simd_fast_length`](/documentation/simd/simd_fast_length-4jwws)

Returns the fast length of a vector.

[`simd_precise_length`](/documentation/simd/simd_precise_length-916dp)

Returns the precise length of a vector.

[`simd_length_squared`](/documentation/simd/simd_length_squared-9h8sy)

Returns the square of the length of a vector.

[`simd_distance`](/documentation/simd/simd_distance-5389o)

Returns the distance between two vectors.

[`simd_fast_distance`](/documentation/simd/simd_fast_distance-5ufke)

Returns the fast distance between two vectors.

[`simd_precise_distance`](/documentation/simd/simd_precise_distance-3ed89)

Returns the precise distance between two vectors.

[`simd_distance_squared`](/documentation/simd/simd_distance_squared-6xb9g)

Returns the square of the distance between two vectors.

### Logic functions

[`simd_select(_:_:_:)`](/documentation/simd/simd_select(_:_:_:)-63scw)

Returns a vector that contains elements from either the first or second parameter, based on the corresponding element’s high-order bit in the mask.

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

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

### Math functions

[`simd_muladd(_:_:_:)`](/documentation/simd/simd_muladd(_:_:_:)-bf1p)

Returns the multiply-add result for corresponding elements in three vectors.



---

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)