Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Implement recursive formulation of Cholesky factorization for n by n symmetric positive definite matrix A.
Let the following be a block partitioning of matrix A.
Here submatrix L22 is n/2 by n/2, L11 is n1 by n1, where n1 = n - n/2, or partition matrix at mid-point
[L11 0 ] * [ L11' L21'] = [A11 A21' ]
[L21 L22] [ L22'] [A21 A22 ]
(1) L11 * L11' = A11 , recursive Cholesky factorization
(2) L21 * L11' = A21 or
L21 = A21 / L11' triangular solve (TRSM)
(3) L21 * L21' + L22 * L22' = A22
or
(3a) A22 <- A22 - L21 * L21', symmetric rank-k update (SYRK)
(3b) L22 * L22' = A22, recursive Cholesky factorization
Note C++ recursion is performed on CPU host and the recursion depth is O( log2( n ) ).