---
title: MPSRNNRecurrentMatrixState
framework: metalperformanceshaders
role: symbol
role_heading: Class
path: metalperformanceshaders/mpsrnnrecurrentmatrixstate
---

# MPSRNNRecurrentMatrixState

A class holds all the data that’s passed from one sequence iteration of the matrix-based recurrent neural network layer to the next.

## Declaration

```swift
class MPSRNNRecurrentMatrixState
```

## Topics

### Instance Methods

- [getMemoryCellMatrix(forLayerIndex:)](metalperformanceshaders/mpsrnnrecurrentmatrixstate/getmemorycellmatrix(forlayerindex:).md)
- [getRecurrentOutputMatrix(forLayerIndex:)](metalperformanceshaders/mpsrnnrecurrentmatrixstate/getrecurrentoutputmatrix(forlayerindex:).md)

## Relationships

### Inherits From

- [MPSState](metalperformanceshaders/mpsstate.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

### Instance Methods

- [copy(with:device:)](metalperformanceshaders/mpsrnnmatrixinferencelayer/copy(with:device:).md)
- [encodeBidirectionalSequence(commandBuffer:sourceSequence:destinationForwardMatrices:destinationBackwardMatrices:)](metalperformanceshaders/mpsrnnmatrixinferencelayer/encodebidirectionalsequence(commandbuffer:sourcesequence:destinationforwardmatrices:destinationbackwardmatrices:).md)
- [encodeSequence(commandBuffer:sourceMatrices:destinationMatrices:recurrentInputState:recurrentOutputStates:)](metalperformanceshaders/mpsrnnmatrixinferencelayer/encodesequence(commandbuffer:sourcematrices:destinationmatrices:recurrentinputstate:recurrentoutputstates:).md)
- [encodeSequence(commandBuffer:sourceMatrices:sourceOffsets:destinationMatrices:destinationOffsets:recurrentInputState:recurrentOutputStates:)](metalperformanceshaders/mpsrnnmatrixinferencelayer/encodesequence(commandbuffer:sourcematrices:sourceoffsets:destinationmatrices:destinationoffsets:recurrentinputstate:recurrentoutputstates:).md)
