---
title: MPSCNNArithmetic
framework: metalperformanceshaders
role: symbol
role_heading: Class
path: metalperformanceshaders/mpscnnarithmetic
---

# MPSCNNArithmetic

The base class for arithmetic operators.

## Declaration

```swift
class MPSCNNArithmetic
```

## Topics

### Instance Properties

- [bias](metalperformanceshaders/mpscnnarithmetic/bias.md)
- [maximumValue](metalperformanceshaders/mpscnnarithmetic/maximumvalue.md)
- [minimumValue](metalperformanceshaders/mpscnnarithmetic/minimumvalue.md)
- [primaryScale](metalperformanceshaders/mpscnnarithmetic/primaryscale.md)
- [primaryStrideInFeatureChannels](metalperformanceshaders/mpscnnarithmetic/primarystrideinfeaturechannels.md)
- [secondaryScale](metalperformanceshaders/mpscnnarithmetic/secondaryscale.md)
- [secondaryStrideInFeatureChannels](metalperformanceshaders/mpscnnarithmetic/secondarystrideinfeaturechannels.md)

### Instance Methods

- [encode(commandBuffer:primaryImage:secondaryImage:destinationState:destinationImage:)](metalperformanceshaders/mpscnnarithmetic/encode(commandbuffer:primaryimage:secondaryimage:destinationstate:destinationimage:).md)
- [encodeBatch(commandBuffer:primaryImages:secondaryImages:destinationStates:destinationImages:)](metalperformanceshaders/mpscnnarithmetic/encodebatch(commandbuffer:primaryimages:secondaryimages:destinationstates:destinationimages:).md)

## Relationships

### Inherits From

- [MPSCNNBinaryKernel](metalperformanceshaders/mpscnnbinarykernel.md)

### Inherited By

- [MPSCNNAdd](metalperformanceshaders/mpscnnadd.md)
- [MPSCNNDivide](metalperformanceshaders/mpscnndivide.md)
- [MPSCNNMultiply](metalperformanceshaders/mpscnnmultiply.md)
- [MPSCNNSubtract](metalperformanceshaders/mpscnnsubtract.md)
- [MPSNNCompare](metalperformanceshaders/mpsnncompare.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSCoding](foundation/nscoding.md)
- [NSCopying](foundation/nscopying.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)
- [NSSecureCoding](foundation/nssecurecoding.md)

## See Also

### Arithmetic Layers

- [MPSCNNAdd](metalperformanceshaders/mpscnnadd.md)
- [MPSCNNAddGradient](metalperformanceshaders/mpscnnaddgradient.md)
- [MPSCNNSubtract](metalperformanceshaders/mpscnnsubtract.md)
- [MPSCNNSubtractGradient](metalperformanceshaders/mpscnnsubtractgradient.md)
- [MPSCNNMultiply](metalperformanceshaders/mpscnnmultiply.md)
- [MPSCNNMultiplyGradient](metalperformanceshaders/mpscnnmultiplygradient.md)
- [MPSCNNDivide](metalperformanceshaders/mpscnndivide.md)
- [MPSCNNArithmeticGradient](metalperformanceshaders/mpscnnarithmeticgradient.md)
- [MPSCNNArithmeticGradientState](metalperformanceshaders/mpscnnarithmeticgradientstate.md)
