Upload
ultrazord
View
216
Download
0
Embed Size (px)
Citation preview
7/29/2019 2013.01.16-ECE595E-L05
1/18
ECE 595, Section 10Numerical Simulations
Lecture 5: Linear Algebra
Prof. Peter Bermel
January 16, 2013
7/29/2019 2013.01.16-ECE595E-L05
2/18
Outline
Recap from Monday
Overview: Computational Linear Algebra
Gaussian Elimination LU Decomposition
Singular Value Decomposition
Sparse Matrices QR Decomposition
1/16/2013 ECE 595, Prof. Bermel
7/29/2019 2013.01.16-ECE595E-L05
3/18
Recap from Monday
1/16/2013 ECE 595, Prof. Bermel
7/29/2019 2013.01.16-ECE595E-L05
4/18
Overview: Computational Linear
Algebra
1/16/2013 ECE 595, Prof. Bermel
7/29/2019 2013.01.16-ECE595E-L05
5/18
Gauss-Jordan Elimination: No Pivoting
1/16/2013 ECE 595, Prof. Bermel
7/29/2019 2013.01.16-ECE595E-L05
6/18
Gauss-Jordan Elimination: Pivoting
Pivoting allows one more flexibility
Interchange rows (partial pivoting)
Interchange rows and columns (full pivoting)
Goal: put biggest element on diagonal
Caveat: some (artificial?) exceptions
Solution: implicit pivoting
1/16/2013 ECE 595, Prof. Bermel
7/29/2019 2013.01.16-ECE595E-L05
7/18
Gaussian Elimination
Reduce original matrix to partially empty (e.g.,
on lower left) to be called U
Perform backsubstitution to find the solution:
1/16/2013 ECE 595, Prof. Bermel
7/29/2019 2013.01.16-ECE595E-L05
8/18
LU Decomposition
1/16/2013 ECE 595, Prof. Bermel
7/29/2019 2013.01.16-ECE595E-L05
9/18
LU Decomposition
To construct the LU matrices, use Croutsalgorithm to compute the decomposition in
place:
1/16/2013 ECE 595, Prof. Bermel
7/29/2019 2013.01.16-ECE595E-L05
10/18
LU Decomposition
Execution time:
total number of elements computed: N2
Total number of operations per element (average):
N/3
Inversion: backsubstitute after factorization
Determinant of an LU factorization:
1/16/2013 ECE 595, Prof. Bermel
7/29/2019 2013.01.16-ECE595E-L05
11/18
Band Diagonal Matrices
Band diagonal means only k diagonals are
non-zero
Common special case: tridiagonal:
Can perform LU decomposition in kNoperations
1/16/2013 ECE 595, Prof. Bermel
7/29/2019 2013.01.16-ECE595E-L05
12/18
Iterative Improvement
1/16/2013 ECE 595, Prof. Bermel
7/29/2019 2013.01.16-ECE595E-L05
13/18
Singular Value Decomposition
1/16/2013 ECE 595, Prof. Bermel
7/29/2019 2013.01.16-ECE595E-L05
14/18
Sparse Linear Systems
1/16/2013 ECE 595, Prof. Bermel
Band diagonal Block triangular Block tridiagonal
Other
Single-bordered
block diagonalDouble-bordered
block diagonal
Single-bordered
block triangular
Bordered band-
triangular
Single-bordered
band diagonal
Double-bordered
band diagonal
7/29/2019 2013.01.16-ECE595E-L05
15/18
Vandermonde Matrices
To solve the problem of moments, construct
Vandermonde matrices which look like:
1/16/2013 ECE 595, Prof. Bermel
7/29/2019 2013.01.16-ECE595E-L05
16/18
Cholesky Decomposition
1/16/2013 ECE 595, Prof. Bermel
7/29/2019 2013.01.16-ECE595E-L05
17/18
QR Decomposition
1/16/2013 ECE 595, Prof. Bermel
7/29/2019 2013.01.16-ECE595E-L05
18/18
Next Class
Discussion of root finding andoptimization
Please read Chapter 10 of NumericalRecipes by W.H. Press et al.
1/16/2013 ECE 595, Prof. Bermel