필터 지우기
필터 지우기

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

조회 수: 4 (최근 30일)
Raviteja Panamgipalli
Raviteja Panamgipalli 2013년 4월 23일
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 :)
  댓글 수: 2
Friedrich
Friedrich 2013년 4월 23일
편집: Friedrich 2013년 4월 23일
Are you sure your dimension is correct? A Matrix like this shouldnt take longer than a few seconds. Can you give us an example MATRIX and a tic,toc output of tic,inv(A);toc? What machine are you running MATLAB on? I cant believe it takes 15-20min.
Edric Ellis
Edric Ellis 2013년 4월 23일
Why do you need inv? See Loren's blog on the purpose of inv here: http://blogs.mathworks.com/loren/2007/05/16/purpose-of-inv/

댓글을 달려면 로그인하십시오.

답변 (1개)

Matthias
Matthias 2013년 4월 23일
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.

카테고리

Help CenterFile Exchange에서 GPU Computing에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by