Created
April 26, 2016 08:31
-
-
Save hurutoriya/b863332421febf8d1e453ed2221f879e to your computer and use it in GitHub Desktop.
Preconditioning Matrix on Matlab
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% be the symmetric matrix on computing enviroment. | |
% Twice A, divide 2. | |
A = 0.5*(A+A') | |
% Add upper triangle of A(include diagenal element) to lower triangle matrix of A. | |
A = triu(A)+triu(A,1)' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Let A, that is symmertix matrix.
but computing have the some computing error(rounding, etc..)
We should do precondotion for getting symmetric matrix.