---
title: MPSMatrixSolveCholesky
framework: metalperformanceshaders
role: symbol
role_heading: Class
path: metalperformanceshaders/mpsmatrixsolvecholesky
---

# MPSMatrixSolveCholesky

A kernel for computing the solution of a linear system of equations using a Cholesky factorization.

## Declaration

```swift
class MPSMatrixSolveCholesky
```

## Overview

Overview This kernel finds the solution matrix to the system AX=B, where: A is a symmetric positive-definite matrix X is the resulting matrix of solutions B is the array of right-hand-sides for which the equations are to be solved

## Topics

### Initializers

- [init(device:upper:order:numberOfRightHandSides:)](metalperformanceshaders/mpsmatrixsolvecholesky/init(device:upper:order:numberofrighthandsides:).md)

### Instance Methods

- [encode(commandBuffer:sourceMatrix:rightHandSideMatrix:solutionMatrix:)](metalperformanceshaders/mpsmatrixsolvecholesky/encode(commandbuffer:sourcematrix:righthandsidematrix:solutionmatrix:).md)

## Relationships

### Inherits From

- [MPSMatrixBinaryKernel](metalperformanceshaders/mpsmatrixbinarykernel.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)
- [MPSMatrixDecompositionLU](metalperformanceshaders/mpsmatrixdecompositionlu.md)
- [MPSMatrixSolveLU](metalperformanceshaders/mpsmatrixsolvelu.md)
- [MPSMatrixSolveTriangular](metalperformanceshaders/mpsmatrixsolvetriangular.md)
- [MPSMatrixUnaryKernel](metalperformanceshaders/mpsmatrixunarykernel.md)
- [MPSMatrixBinaryKernel](metalperformanceshaders/mpsmatrixbinarykernel.md)
- [MPSMatrixDecompositionStatus](metalperformanceshaders/mpsmatrixdecompositionstatus.md)
