MPSMatrixSolveLU(3) | MetalPerformanceShaders.framework | MPSMatrixSolveLU(3) |
MPSMatrixSolveLU
#import <MPSMatrixSolve.h>
Inherits MPSMatrixBinaryKernel.
(nonnull instancetype) -
initWithDevice:transpose:order:numberOfRightHandSides:
(void) -
encodeToCommandBuffer:sourceMatrix:rightHandSideMatrix:pivotIndices:solutionMatrix:
This depends on Metal.framework.
A kernel for computing the solution of a linear system of equations using the LU factorization resulting from a MPSMatrixDecompositionLU kernel.
A MPSMatrixSolveLU finds the solution matrix to the system:
op(A) * X = B
Where op(A) is A**T or A. B is the array of right hand sides for which
the equations are to be solved. X is the resulting matrix of solutions.
Encode a MPSMatrixSolveLU kernel into a command Buffer.
Parameters:
This function encodes the MPSMatrixSolveLU object to a valid command buffer. sourceMatrix should contain the lower and upper triangular factors of A as results from a previous execution of MPSMatrixDecompositionLU.
pivotIndices is an array of pivots resulting from a previous execution of MPSMatrixDecompositionLU.
rightHandSideMatrix and solutionMatrix must be large enough to hold a matrix of size order x numberOfRightHandSides starting at secondarySourceMatrixOrigin and resultMatrixOrigin respectively.
sourceMatrix must be at least size order x order starting at primarySourceMatrixOrigin.
Initialize an MPSMatrixSolveLU 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 |