iterative solvers and speed comparisons

조회 수: 4 (최근 30일)
James McDaniel
James McDaniel 2013년 4월 24일
We are using an iterative solver with various starting guesses and trying to assess whether this is faster than using a direct solve. However, the iterative solvers seem to be about an order of magnitude slower even when the initial guess is very accurate. In fact, using the solution from a direct solve (backslash) in an iterative solver takes about 10 times longer than the direct solve did. We suspect this is because the iterative solvers are not compiled and linked and the direct solver is. Can anyone recommend accurate ways of comparing iterative solvers to direct solvers for speed/efficiency within matlab? We would like to predict performance in a fully compiled language like C++ or fortran. Thank you.
  댓글 수: 1
Matt J
Matt J 2013년 4월 24일
편집: Matt J 2013년 4월 24일
We need a lot more details about the tests you did, e.g., the equations being solved and which solvers were used.
In fact, using the solution from a direct solve (backslash) in an iterative solver takes about 10 times longer than the direct solve did.
That sounds like a symptom of ill-conditioning. There are many non-unique solutions to your equations (or approximately so), so the iterative solver spends its time crawling along a locus of nearly equivalent solutions, unable to decide between them until some stopping criterion is finally met.

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

답변 (0개)

카테고리

Help CenterFile Exchange에서 Linear Algebra에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by