MultiSolve 3x3

버전 1.0.0.0 (905 Bytes) 작성자: Ofek Shilon
Vectorized solve of multiple 3x3 linear systems
다운로드 수: 1.3K
업데이트 날짜: 2006/6/6

라이선스 없음

xx = multisolve3x3(AA,b)

Highly optimized solution of multiple 3x3 linear systems.

The m 3-by-3-coefficient matrices can be given in 2 forms:
(1) The argument matrix AA is 3m x 3 (i.e., the k-th linear system occupies rows 3k-2:3k).
(2) The argument AA is an 3x3xm array. (the k-th linear system is AA(:,:,k) ).

Similarly, the result vectors b can be given in 2 forms (independent of AA):
(1) a 3m x 1 vector, where the k-th result is in rows 3k-2:3k,
(2) a 3xm matrix, whose k-th column contains the k-th result.

Either way, the solution xx is given in size identical to that of b.

Example:

m = 10 ; % system num
AA = rand(3,3,m);
bb = rand(3,m);

xx = multisolve3x3(AA,bb);

%test results:
for jj=1:m
max(abs( AA(:,:,jj) * xx(:,jj) - bb(:,jj) ))
end

인용 양식

Ofek Shilon (2024). MultiSolve 3x3 (https://www.mathworks.com/matlabcentral/fileexchange/11292-multisolve-3x3), MATLAB Central File Exchange. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R2006a
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Linear Algebra에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!
버전 게시됨 릴리스 정보
1.0.0.0