---
title: MPSMatrixSum
framework: metalperformanceshaders
role: symbol
role_heading: Class
path: metalperformanceshaders/mpsmatrixsum
---

# MPSMatrixSum

A kernel for performing a pointwise summation of a matrix.

## Declaration

```swift
class MPSMatrixSum
```

## Topics

### Initializers

- [init(coder:device:)](metalperformanceshaders/mpsmatrixsum/init(coder:device:).md)
- [init(device:count:rows:columns:transpose:)](metalperformanceshaders/mpsmatrixsum/init(device:count:rows:columns:transpose:).md)

### Instance Properties

- [columns](metalperformanceshaders/mpsmatrixsum/columns.md)
- [count](metalperformanceshaders/mpsmatrixsum/count.md)
- [neuronParameterA](metalperformanceshaders/mpsmatrixsum/neuronparametera.md)
- [neuronParameterB](metalperformanceshaders/mpsmatrixsum/neuronparameterb.md)
- [neuronParameterC](metalperformanceshaders/mpsmatrixsum/neuronparameterc.md)
- [resultMatrixOrigin](metalperformanceshaders/mpsmatrixsum/resultmatrixorigin.md)
- [rows](metalperformanceshaders/mpsmatrixsum/rows.md)
- [transpose](metalperformanceshaders/mpsmatrixsum/transpose.md)

### Instance Methods

- [encode(to:sourceMatrices:resultMatrix:scale:offsetVector:biasVector:start:)](metalperformanceshaders/mpsmatrixsum/encode(to:sourcematrices:resultmatrix:scale:offsetvector:biasvector:start:).md)
- [neuronType()](metalperformanceshaders/mpsmatrixsum/neurontype().md)
- [setNeuronType(_:parameterA:parameterB:parameterC:)](metalperformanceshaders/mpsmatrixsum/setneurontype(_:parametera:parameterb:parameterc:).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 Arithmetic Operations

- [MPSMatrixMultiplication](metalperformanceshaders/mpsmatrixmultiplication.md)
- [MPSMatrixVectorMultiplication](metalperformanceshaders/mpsmatrixvectormultiplication.md)
- [MPSMatrixFindTopK](metalperformanceshaders/mpsmatrixfindtopk.md)
