---
title: MPSMatrixCopy
framework: metalperformanceshaders
role: symbol
role_heading: Class
path: metalperformanceshaders/mpsmatrixcopy
---

# MPSMatrixCopy

A class that can perform multiple matrix copy operations.

## Declaration

```swift
class MPSMatrixCopy
```

## Topics

### Initializers

- [init(coder:device:)](metalperformanceshaders/mpsmatrixcopy/init(coder:device:).md)
- [init(device:copyRows:copyColumns:sourcesAreTransposed:destinationsAreTransposed:)](metalperformanceshaders/mpsmatrixcopy/init(device:copyrows:copycolumns:sourcesaretransposed:destinationsaretransposed:).md)

### Instance Properties

- [copyColumns](metalperformanceshaders/mpsmatrixcopy/copycolumns.md)
- [copyRows](metalperformanceshaders/mpsmatrixcopy/copyrows.md)
- [destinationsAreTransposed](metalperformanceshaders/mpsmatrixcopy/destinationsaretransposed.md)
- [sourcesAreTransposed](metalperformanceshaders/mpsmatrixcopy/sourcesaretransposed.md)

### Instance Methods

- [encode(commandBuffer:copyDescriptor:)](metalperformanceshaders/mpsmatrixcopy/encode(commandbuffer:copydescriptor:).md)
- [encode(commandBuffer:copyDescriptor:rowPermuteIndices:rowPermuteOffset:columnPermuteIndices:columnPermuteOffset:)](metalperformanceshaders/mpsmatrixcopy/encode(commandbuffer:copydescriptor:rowpermuteindices:rowpermuteoffset:columnpermuteindices:columnpermuteoffset:).md)

## Relationships

### Inherits From

- [MPSKernel](metalperformanceshaders/mpskernel.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

### Matrix Copying Operations

- [MPSMatrixCopyToImage](metalperformanceshaders/mpsmatrixcopytoimage.md)
- [MPSMatrixCopyDescriptor](metalperformanceshaders/mpsmatrixcopydescriptor.md)
- [MPSImageCopyToMatrix](metalperformanceshaders/mpsimagecopytomatrix.md)
