---
title: MPSMatrixUnaryKernel
framework: metalperformanceshaders
role: symbol
role_heading: Class
path: metalperformanceshaders/mpsmatrixunarykernel
---

# MPSMatrixUnaryKernel

A kernel that consumes one matrix and produces one matrix.

## Declaration

```swift
class MPSMatrixUnaryKernel
```

## Topics

### Instance Properties

- [batchSize](metalperformanceshaders/mpsmatrixunarykernel/batchsize.md)
- [batchStart](metalperformanceshaders/mpsmatrixunarykernel/batchstart.md)
- [resultMatrixOrigin](metalperformanceshaders/mpsmatrixunarykernel/resultmatrixorigin.md)
- [sourceMatrixOrigin](metalperformanceshaders/mpsmatrixunarykernel/sourcematrixorigin.md)

## Relationships

### Inherits From

- [MPSKernel](metalperformanceshaders/mpskernel.md)

### Inherited By

- [MPSMatrixBatchNormalization](metalperformanceshaders/mpsmatrixbatchnormalization.md)
- [MPSMatrixDecompositionCholesky](metalperformanceshaders/mpsmatrixdecompositioncholesky.md)
- [MPSMatrixDecompositionLU](metalperformanceshaders/mpsmatrixdecompositionlu.md)
- [MPSMatrixFindTopK](metalperformanceshaders/mpsmatrixfindtopk.md)
- [MPSMatrixNeuron](metalperformanceshaders/mpsmatrixneuron.md)
- [MPSMatrixSoftMax](metalperformanceshaders/mpsmatrixsoftmax.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

### Classes for Decomposition and Solving

- [MPSMatrixDecompositionCholesky](metalperformanceshaders/mpsmatrixdecompositioncholesky.md)
- [MPSMatrixSolveCholesky](metalperformanceshaders/mpsmatrixsolvecholesky.md)
- [MPSMatrixDecompositionLU](metalperformanceshaders/mpsmatrixdecompositionlu.md)
- [MPSMatrixSolveLU](metalperformanceshaders/mpsmatrixsolvelu.md)
- [MPSMatrixSolveTriangular](metalperformanceshaders/mpsmatrixsolvetriangular.md)
- [MPSMatrixBinaryKernel](metalperformanceshaders/mpsmatrixbinarykernel.md)
- [MPSMatrixDecompositionStatus](metalperformanceshaders/mpsmatrixdecompositionstatus.md)
