---
title: MPSCNNArithmeticGradient
framework: metalperformanceshaders
role: symbol
role_heading: Class
path: metalperformanceshaders/mpscnnarithmeticgradient
---

# MPSCNNArithmeticGradient

The base class for gradient arithmetic operators.

## Declaration

```swift
class MPSCNNArithmeticGradient
```

## Topics

### Instance Properties

- [bias](metalperformanceshaders/mpscnnarithmeticgradient/bias.md)
- [isSecondarySourceFilter](metalperformanceshaders/mpscnnarithmeticgradient/issecondarysourcefilter.md)
- [maximumValue](metalperformanceshaders/mpscnnarithmeticgradient/maximumvalue.md)
- [minimumValue](metalperformanceshaders/mpscnnarithmeticgradient/minimumvalue.md)
- [primaryScale](metalperformanceshaders/mpscnnarithmeticgradient/primaryscale.md)
- [secondaryScale](metalperformanceshaders/mpscnnarithmeticgradient/secondaryscale.md)
- [secondaryStrideInFeatureChannels](metalperformanceshaders/mpscnnarithmeticgradient/secondarystrideinfeaturechannels.md)

## Relationships

### Inherits From

- [MPSCNNGradientKernel](metalperformanceshaders/mpscnngradientkernel.md)

### Inherited By

- [MPSCNNAddGradient](metalperformanceshaders/mpscnnaddgradient.md)
- [MPSCNNMultiplyGradient](metalperformanceshaders/mpscnnmultiplygradient.md)
- [MPSCNNSubtractGradient](metalperformanceshaders/mpscnnsubtractgradient.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)
- [MPSCNNArithmetic](metalperformanceshaders/mpscnnarithmetic.md)
- [MPSCNNArithmeticGradientState](metalperformanceshaders/mpscnnarithmeticgradientstate.md)
