linsolve behaviour for SYM true and POSDEF false
    조회 수: 5 (최근 30일)
  
       이전 댓글 표시
    
Does linsolve use an LDL factoring if the options are SYM true and POSDEF false?
댓글 수: 7
  Torsten
      
      
 2024년 9월 30일
				
      편집: Torsten
      
      
 2024년 9월 30일
  
			linsolve will use the same solver as mldivide if you specify that your matrix is symmetric indefinite, and according to the flowchart of solvers under
mldivide would use LU for full matrices and LDL for sparse matrices. But better you recheck the yes/no cases in the two flowcharts in the "Algorithms" section.
To be sure you could also contact MATLAB support directly:
답변 (1개)
  Vandit
      
 2024년 9월 29일
        
      편집: Vandit
      
 2024년 9월 29일
  
      Hello Sylvan,
The "linsolve" function does not use LDL factorization if the options are set to 'SYM' true and 'POSDEF' false. Instead, it will use the appropriate solver based on the properties specified in the options structure. If 'SYM' is true, it will typically use a method suitable for symmetric matrices, but without the positive definiteness condition, it won't specifically apply LDL factorization.
For more information on "linsolve" function, please refer to the below documentation:
Hope this helps.
참고 항목
카테고리
				Help Center 및 File Exchange에서 Linear Algebra에 대해 자세히 알아보기
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!



