[ANSWERED] Performing Cholesky Decomposition of Complex Hermitian Matrices...
I wish to create a function to calculate Cholesky Decomposition of a Complex Hermitian Matrix. I am using the Cholesky-Banachiewicz Algorithm from here : https://en.wikipedia.org/wiki/Cholesky_decomposition#Example Here is my function : https://code.sololearn.com/cqEyMBcBBX8t/#cpp But now if the matrix to be decomposed is : 5 2+3i 5i 2-3i 7 1+7i -5i 1-7i 12 The program is returning : 2.2361 0 0 0.89443-1.3416i 2.6458 0 -2.2361i 0.37796-2.6458i 3.4641 When the expected answer is : 2.2361 0 0 0.89443-1.3416i 2.098 0 -2.2361i -0.953-2.384i 0.64 Note that all the functions used inside the Cholesky function work as expected and return correct answers. Then, why do I get a wrong answer? Kindly help.