I need to calculate matrix inverse and have been using solve function. While it works well on small matrices, solve tends to be very slow on large matrices. I was wondering if there is any other function or combination of functions (through SVD, QR, LU, or other decomposition functions) that can give me faster results.
|
|
||||
| show 2 more comments |
|
Have you tried what cardinal suggested and explored some of the alternative methods for computing the inverse? Let's consider a specific example:
So, this is an example of a $2000 \times 2000$ correlation matrix for which we want the inverse. On my laptop (Core-i5 2.50Ghz), So the inverse via the Choleski decomposition is about twice as fast as |
|||
|
solvemethod definitely does my work but I want the algorithm to be faster. So, I am just wondering if there is a more efficient (in time context) function for calculating inverse for such large size matrix. – jitendra Aug 29 '11 at 18:27solve? Of course, absent special structure, you can't escape the theoretical complexity bounds on general matrix inversion. – cardinal Aug 29 '11 at 18:38