---
title: MLCArithmeticOperation.max
framework: ML Compute
role: symbol
role_heading: Case
platforms: [iOS 14.5+, iPadOS 14.5+, Mac Catalyst 14.5+, macOS 11.3+, tvOS 14.5+]
path: mlcompute/mlcarithmeticoperation/max
---

# MLCArithmeticOperation.max

Calculates the element-wise maximum the inputs.

## Declaration

```swift
case max
```

## See Also

### Basic Operations

- [MLCArithmeticOperation.add](mlcompute/mlcarithmeticoperation/add.md)
- [MLCArithmeticOperation.subtract](mlcompute/mlcarithmeticoperation/subtract.md)
- [MLCArithmeticOperation.multiply](mlcompute/mlcarithmeticoperation/multiply.md)
- [MLCArithmeticOperation.multiplyNoNaN](mlcompute/mlcarithmeticoperation/multiplynonan.md)
- [MLCArithmeticOperation.divide](mlcompute/mlcarithmeticoperation/divide.md)
- [MLCArithmeticOperation.divideNoNaN](mlcompute/mlcarithmeticoperation/dividenonan.md)
- [MLCArithmeticOperation.min](mlcompute/mlcarithmeticoperation/min.md)
