Quantcast
Channel: MATLAB Central - File Exchange - tag:"least squares"
Viewing all articles
Browse latest Browse all 522

Fast and Accurate Symmetric Positive Definite Matrix Inverse Using Cholesky Decomposition

$
0
0
345112015-02-18T16:27:52Z2015-02-18T16:27:52Z

We can exploit the structure of a real, positive definite, symmetric matrix by using the Cholesky decomposition to compute the inverse. The standard MATLAB inv function uses LU decomposition which requires twice as many operations as the Cholesky decomposition and is less accurate. Rarely does one need to compute the inverse of a matrix (e.g. when solving a linear system, we should use \), but when it is needed (e.g. least squares or Kalman Filtering applications), the matrix is positive definite and symmetric. Thus, we can speed up and improve the accuracy of the computation by using the Cholesky decomposition. Because the Cholesky decomposition takes half as many operations, the algorithm will decrease run-time by about 50% for large matrices. Accuracy is also improved with some examples showing orders of magnitude improvement (see Felix Govaers's comment).


Viewing all articles
Browse latest Browse all 522

Trending Articles