---
title: MLCArithmeticLayer
framework: ML Compute
role: symbol
role_heading: Class
platforms: [iOS 14.0+, iPadOS 14.0+, Mac Catalyst 14.0+, macOS 11.0+, tvOS 14.0+]
path: mlcompute/mlcarithmeticlayer
---

# MLCArithmeticLayer

A layer that performs an arithmetic operation.

## Declaration

```swift
class MLCArithmeticLayer
```

## Topics

### Creating Arithmetic Layers

- [init(operation:)](mlcompute/mlcarithmeticlayer/init(operation:).md)
- [MLCArithmeticOperation](mlcompute/mlcarithmeticoperation.md)

### Inspecting Arithmetic Layers

- [operation](mlcompute/mlcarithmeticlayer/operation.md)

## Relationships

### Inherits From

- [MLCLayer](mlcompute/mlclayer.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)

## See Also

### Math Layers

- [MLCReductionLayer](mlcompute/mlcreductionlayer.md)
- [MLCMatMulLayer](mlcompute/mlcmatmullayer.md)
- [MLCFullyConnectedLayer](mlcompute/mlcfullyconnectedlayer.md)
- [MLCGramMatrixLayer](mlcompute/mlcgrammatrixlayer.md)
- [MLCComparisonLayer](mlcompute/mlccomparisonlayer.md)
