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

# max(_:_:)

Elementwise maximum of two vectors.  Each component of the result is the larger of the corresponding component of the inputs.

## Declaration

```swift
func max(_ x: simd_half16, _ y: simd_half16) -> simd_half16
```
