MPSMatrixDecompositionCholesky(3) | MetalPerformanceShaders.framework | MPSMatrixDecompositionCholesky(3) |
MPSMatrixDecompositionCholesky
#import <MPSMatrixDecomposition.h>
Inherits MPSMatrixUnaryKernel.
(nonnull instancetype) - initWithDevice:lower:order:
(void) - encodeToCommandBuffer:sourceMatrix:resultMatrix:status:
This depends on Metal.framework.
A kernel for computing the Cholesky factorization of a matrix.
A MPSMatrixDecompositionLU object computes one of the following factorizations of a matrix A:
A = L * L**T A = U**T * U
A is a symmetric positive-definite matrix for which the factorization is to be computed. L and U are lower and upper triangular matrices respectively.
Encode a MPSMatrixDecompositionCholesky kernel into a command Buffer.
Parameters:
This function encodes the MPSMatrixDecompositionCholesky object to a valid command buffer.
If during the factorization a leading minor of the matrix is found to be not positive definite, MPSMatrixDecompositionNonPositiveDefinite will be returned in the provided status buffer. Previously computed pivots and the non positive pivot are written to the result, but the factorization does not complete. The data referenced by the MTLBuffer is not valid until the command buffer has completed execution. If the matrix return status is not desired NULL may be provided.
If the return status is MPSMatrixDecompositionStatusSuccess, resultMatrix contains the resulting factors in its lower or upper triangular regions respectively.
This kernel functions either in-place, if the result matrix completely aliases the source matrix, or out-of-place. If there is any partial overlap between input and output data the results are undefined.
Initialize an MPSMatrixDecompositionCholesky object on a device
Parameters:
Returns:
Generated automatically by Doxygen for MetalPerformanceShaders.framework from the source code.
Mon Jul 9 2018 | Version MetalPerformanceShaders-119.3 |