---
title: "pointwiseMax(_:_:)"
framework: swift
role: symbol
role_heading: Function
path: "swift/pointwisemax(_:_:)-29hn2"
---

# pointwiseMax(_:_:)

The lanewise maximum of two vectors.

## Declaration

```swift
func pointwiseMax<T>(_ a: T, _ b: T) -> T where T : SIMD, T.Scalar : FloatingPoint
```

## Discussion

Discussion Each element of the result is the maximum of the corresponding elements of the inputs.

## See Also

### Supporting Functions

- [all(_:)](swift/all(_:).md)
- [any(_:)](swift/any(_:).md)
- [pointwiseMax(_:_:)](swift/pointwisemax(_:_:)-2k6er.md)
- [pointwiseMin(_:_:)](swift/pointwisemin(_:_:)-39txi.md)
- [pointwiseMin(_:_:)](swift/pointwisemin(_:_:)-8v95p.md)
