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

# max(_:_:)

Returns the maximum value of each element in a vector.

## Declaration

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

## See Also

### Extrema Functions

- [simd_max(_:_:)](simd/simd_max(_:_:)-93k3o.md)
- [max(_:_:)](simd/max(_:_:)-1zb5g.md)
- [simd_min(_:_:)](simd/simd_min(_:_:)-2t446.md)
- [min(_:_:)](simd/min(_:_:)-8safl.md)
- [min(_:_:)](simd/min(_:_:)-8p0ea.md)
