---
title: MPSMatrixBinaryKernel
framework: metalperformanceshaders
role: symbol
role_heading: Class
path: metalperformanceshaders/mpsmatrixbinarykernel
---

# MPSMatrixBinaryKernel

A kernel that consumes two matrices and produces one matrix.

## Declaration

```swift
class MPSMatrixBinaryKernel
```

## Topics

### Instance Properties

- [batchSize](metalperformanceshaders/mpsmatrixbinarykernel/batchsize.md)
- [batchStart](metalperformanceshaders/mpsmatrixbinarykernel/batchstart.md)
- [primarySourceMatrixOrigin](metalperformanceshaders/mpsmatrixbinarykernel/primarysourcematrixorigin.md)
- [resultMatrixOrigin](metalperformanceshaders/mpsmatrixbinarykernel/resultmatrixorigin.md)
- [secondarySourceMatrixOrigin](metalperformanceshaders/mpsmatrixbinarykernel/secondarysourcematrixorigin.md)

## Relationships

### Inherits From

- [MPSKernel](metalperformanceshaders/mpskernel.md)

### Inherited By

- [MPSMatrixBatchNormalizationGradient](metalperformanceshaders/mpsmatrixbatchnormalizationgradient.md)
- [MPSMatrixFullyConnected](metalperformanceshaders/mpsmatrixfullyconnected.md)
- [MPSMatrixFullyConnectedGradient](metalperformanceshaders/mpsmatrixfullyconnectedgradient.md)
- [MPSMatrixNeuronGradient](metalperformanceshaders/mpsmatrixneurongradient.md)
- [MPSMatrixSoftMaxGradient](metalperformanceshaders/mpsmatrixsoftmaxgradient.md)
- [MPSMatrixSolveCholesky](metalperformanceshaders/mpsmatrixsolvecholesky.md)
- [MPSMatrixSolveLU](metalperformanceshaders/mpsmatrixsolvelu.md)
- [MPSMatrixSolveTriangular](metalperformanceshaders/mpsmatrixsolvetriangular.md)
- [MPSMatrixVectorMultiplication](metalperformanceshaders/mpsmatrixvectormultiplication.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)
- [MPSMatrixUnaryKernel](metalperformanceshaders/mpsmatrixunarykernel.md)
- [MPSMatrixDecompositionStatus](metalperformanceshaders/mpsmatrixdecompositionstatus.md)
