120 likes | 375 Views
Systems of Linear Equations. Special Matrices. Question. How would you solve a system Ax = b if A is. Would you use Gauss elimination? Forward or backward substitution? LU Decomposition?. Banded Matrix.
E N D
Systems of Linear Equations Special Matrices
Question How would you solve a system Ax = b if A is Would you use Gauss elimination? Forward or backward substitution? LU Decomposition?
Banded Matrix Certain matrices have particular structures that can be exploited to develop efficient solution schemes. A banded matrix is a square matrix that has all elements equal to zero, with the exception of a band centered on the main diagonal. The dimensions of a banded system can be quantified by two parameters: the band width BW and half-bandwidth HBW. These two values are related by BW=2HBW+1.
Tri-diagonal Matrix A special case of banded matrix. // Thomas Algorithm // Decomposition for k = 2 to n { ek = ek / fk-1 fk = fk – ek * gk-1 } // Forward substitution for k = 2 to n rk = rk – ek * rk-1 // Back subsitition xn = rn / fn for k = n-1 downto 1 xk = (rk – gk * xk+1) / fk
Block Diagonal Matrix Another special case of banded matrix where diagonal elements can form various square matrices of various dimensions. We can solve these sub-systems independently
Cholesky Decomposition If A is symmetry (A = AT), and A is positive definite (xTAx > 0), then we can decompose A in to LLT as