Skip to content

Instantly share code, notes, and snippets.

@hurutoriya
Created April 26, 2016 08:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hurutoriya/b863332421febf8d1e453ed2221f879e to your computer and use it in GitHub Desktop.
Save hurutoriya/b863332421febf8d1e453ed2221f879e to your computer and use it in GitHub Desktop.
Preconditioning Matrix on Matlab
% 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)'
@hurutoriya
Copy link
Author

Let A, that is symmertix matrix.
but computing have the some computing error(rounding, etc..)

We should do precondotion for getting symmetric matrix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment