---
title: "max(_:_:)"
framework: simd
role: symbol
role_heading: Function
path: "simd/max(_:_:)-9xpv0"
---

# max(_:_:)

Returns the maximum value of each element in a vector.

## Declaration

```swift
func max(_ x: SIMD2<Int32>, _ y: SIMD2<Int32>) -> SIMD2<Int32>
```

## See Also

### Extrema Functions

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