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

# max(_:_:)

Vector-scalar maximum.  Each component of the result is the maximum of the corresponding element of the input vector and the scalar.

## Declaration

```swift
func max(_ vector: simd_half8, _ scalar: Float16) -> simd_half8
```
