<!--
{
  "availability" : [
    "iOS: 11.0.0 -",
    "iPadOS: 11.0.0 -",
    "macCatalyst: 13.0.0 -",
    "macOS: 10.13.0 -",
    "tvOS: 11.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "MetalPerformanceShaders",
  "identifier" : "/documentation/MetalPerformanceShaders/MPSMatrixSolveCholesky",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "Metal Performance Shaders"
    ],
    "preciseIdentifier" : "c:objc(cs)MPSMatrixSolveCholesky"
  },
  "title" : "MPSMatrixSolveCholesky"
}
-->

# MPSMatrixSolveCholesky

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

```
class MPSMatrixSolveCholesky
```

## 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

[`-  initWithDevice:upper:order:numberOfRightHandSides:`](/documentation/MetalPerformanceShaders/MPSMatrixSolveCholesky/init(device:upper:order:numberOfRightHandSides:))

### Instance Methods

[`-  encodeToCommandBuffer:sourceMatrix:rightHandSideMatrix:solutionMatrix:`](/documentation/MetalPerformanceShaders/MPSMatrixSolveCholesky/encode(commandBuffer:sourceMatrix:rightHandSideMatrix:solutionMatrix:))

## Relationships

### Conforms To

[`Equatable`](/documentation/Swift/Equatable)

[`NSSecureCoding`](/documentation/Foundation/NSSecureCoding)

[`CVarArg`](/documentation/Swift/CVarArg)

[`NSCoding`](/documentation/Foundation/NSCoding)

[`CustomStringConvertible`](/documentation/Swift/CustomStringConvertible)

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

[`CustomDebugStringConvertible`](/documentation/Swift/CustomDebugStringConvertible)

[`NSCopying`](/documentation/Foundation/NSCopying)

[`Hashable`](/documentation/Swift/Hashable)

### Inherits From

[`MPSMatrixBinaryKernel`](/documentation/MetalPerformanceShaders/MPSMatrixBinaryKernel)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)