---
title: "getMemoryCellMatrix(forLayerIndex:)"
framework: metalperformanceshaders
role: symbol
role_heading: Instance Method
path: "metalperformanceshaders/mpsrnnrecurrentmatrixstate/getmemorycellmatrix(forlayerindex:)"
---

# getMemoryCellMatrix(forLayerIndex:)

## Declaration

```swift
func getMemoryCellMatrix(forLayerIndex layerIndex: Int) -> MPSMatrix?
```

## See Also

### Instance Methods

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