<!--
{
  "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/MPSMatrixDecompositionCholesky",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "Metal Performance Shaders"
    ],
    "preciseIdentifier" : "c:objc(cs)MPSMatrixDecompositionCholesky"
  },
  "title" : "MPSMatrixDecompositionCholesky"
}
-->

# MPSMatrixDecompositionCholesky

A kernel for computing the Cholesky factorization of a matrix.

```
class MPSMatrixDecompositionCholesky
```

## Overview

This kernel computes one of the following factorizations of a matrix *A*:

- *A = LLᵀ*
- *A = UᵀU*

where:

- *A* is a symmetric positive-definite matrix for which the factorization is to be computed
- *L* is the lower triangular matrix
- *U* is the upper triangular matrix

## Topics

### Initializers

[`-  initWithDevice:lower:order:`](/documentation/MetalPerformanceShaders/MPSMatrixDecompositionCholesky/init(device:lower:order:))

### Instance Methods

[`-  encodeToCommandBuffer:sourceMatrix:resultMatrix:status:`](/documentation/MetalPerformanceShaders/MPSMatrixDecompositionCholesky/encode(commandBuffer:sourceMatrix:resultMatrix:status:))

## Relationships

### Inherits From

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

### Conforms To

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

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

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

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

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

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

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

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

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

---

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)