---
title: "simd_max(_:_:)"
framework: simd
role: symbol
role_heading: Function
path: "simd/simd_max(_:_:)-8931y"
---

# simd_max(_:_:)

Returns the maximum value of each element in a vector.

## Declaration

```swift
func simd_max(_ x: simd_uint2, _ y: simd_uint2) -> simd_uint2
```

## See Also

### Extrema Functions

- [simd_min(_:_:)](simd/simd_min(_:_:)-9b5n7.md)
- [min(_:_:)](simd/min(_:_:)-6xef7.md)
- [min(_:_:)](simd/min(_:_:)-70ls4.md)
- [max(_:_:)](simd/max(_:_:)-9ch4d.md)
- [max(_:_:)](simd/max(_:_:)-9fm5e.md)
