---
title: MPSNNArithmeticGradientStateNode
framework: metalperformanceshaders
role: symbol
role_heading: Class
path: metalperformanceshaders/mpsnnarithmeticgradientstatenode
---

# MPSNNArithmeticGradientStateNode

A representation of the clamp mask used by gradient arithmetic operators.

## Declaration

```swift
class MPSNNArithmeticGradientStateNode
```

## Relationships

### Inherits From

- [MPSNNBinaryGradientStateNode](metalperformanceshaders/mpsnnbinarygradientstatenode.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

### Arithmetic Layer Nodes

- [MPSNNAdditionNode](metalperformanceshaders/mpsnnadditionnode.md)
- [MPSNNAdditionGradientNode](metalperformanceshaders/mpsnnadditiongradientnode.md)
- [MPSNNSubtractionNode](metalperformanceshaders/mpsnnsubtractionnode.md)
- [MPSNNSubtractionGradientNode](metalperformanceshaders/mpsnnsubtractiongradientnode.md)
- [MPSNNMultiplicationNode](metalperformanceshaders/mpsnnmultiplicationnode.md)
- [MPSNNMultiplicationGradientNode](metalperformanceshaders/mpsnnmultiplicationgradientnode.md)
- [MPSNNDivisionNode](metalperformanceshaders/mpsnndivisionnode.md)
- [MPSNNBinaryArithmeticNode](metalperformanceshaders/mpsnnbinaryarithmeticnode.md)
- [MPSNNArithmeticGradientNode](metalperformanceshaders/mpsnnarithmeticgradientnode.md)
