why does control+c not work to stop a run away calculation
    조회 수: 3 (최근 30일)
  
       이전 댓글 표시
    
I am solving a linear problem p=A\b where A is large, rectangular, and sparse. Prior to R2015b I was able to stop this calculation with a control+c when a mistake was made in the input (too large for the RAM or a badly scaled matrix element, etc.) and the calculation went into essentially an infinite loop. Now I am routinely having to kill the matlab process and restart matlab when things go wrong. Is there a change in the behavior of "\" calculations? What can be done to avoid the run away problem? BTW - sometimes the calculation terminates with the (correct) assessment that the problem exceeds available memory - but then at other times, it fails to identify the problem and runs until paging slows the calculation to a snails pace or all application memory is exhausted and my mac goes into the suspended app mode.
댓글 수: 0
답변 (1개)
  Walter Roberson
      
      
 2015년 9월 25일
        Any call into the BLAS or LINPAK or similar libraries is not under the control of the control-C handler until the call returns.
댓글 수: 0
참고 항목
카테고리
				Help Center 및 File Exchange에서 Matrix Indexing에 대해 자세히 알아보기
			
	제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

