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

# simd_max(_:_:)

Returns the maximum value of each element in a vector.

## Declaration

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

## See Also

### Extrema Functions

- [max(_:_:)](simd/max(_:_:)-9xpv0.md)
- [max(_:_:)](simd/max(_:_:)-9uijf.md)
- [simd_min(_:_:)](simd/simd_min(_:_:)-3focz.md)
- [min(_:_:)](simd/min(_:_:)-jyi5.md)
- [min(_:_:)](simd/min(_:_:)-goji.md)
