How to reduce the time to calculate the inverse of a matrix

54 views (last 30 days)
Raviteja Panamgipalli
Raviteja Panamgipalli on 23 Apr 2013
I have a 64 x 64 matrix,and it is taking a lot of time like 15-20 minutes to compute the inverse,Let my matrix be A,I'm using the command inv(A) to compute the inverse,Is there any alternative method to make my function work faster,Thank you in advance :)

Sign in to comment.

Answers (1)

Matthias on 23 Apr 2013
I think the inv function implemented by Mathworks is as fast as it gets for the general purpose. There are two inv-functions in the Ligthspeed library, but it seems like these are designed for special cases. Your should see if these cases apply with your Matrix.
The other possibility will be using better Hardware. Since inv() is implemented in cuda by Mathworks ill assume it is parallelizable. Make sure to load all your cores using 'matlabpool' and see if your GPU hat CUDA 1.3.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!