- Course green sheet (MS word doc file)
- Sections covered in Watkins, 3rd edition.
- Schedule for the semester. The current dates are estimated dates. The schedule will be updated as the semester progresses with a notation such as Updated on xx-yy-zzzz. Please keep track of the most recent version.
- A short guide to get started in Matlab
- Alternatives to Matlab
- A sample quiz covering material that you should know from M129A.
- Top ten algorithms from the 20th century (from SIAM). We discuss four of these: matrix decompositions, Krylov subspace methods, QR algorithm for eigenvalues, and programming in a high level language
- List of Important matrix decompositions: LU, QR, eigenvalue and singular value decompositions (SVD)
- Examples - important matrix decompositions: LU, QR, eigenvalue and SVD. Also tex original.
- Homework - Basic Decompositions
- Homework - Linear Algebra Review + Introduction to Norms
- Four Ways to do Matrix Multiplication
- Discussion of the Singular Value Decomposition by Cleve Moler, chief scientist at the Mathworks
- Computing assignment - Curve fitting (QR), Heat flow (LU), Resonance (eigenvalues) and Image Compression (SVD).
- Algorithms for Gaussian elimination (pseudocode): GENP, GE with no pivoting, GEPP, GE with partial pivoting, GECP, GE with complete pivoting, and GERP, GE with rook pivoting. Also tex original.
- Example - Gaussian elimination with partial pivoting . Also tex original. Updated 9-18-2013.
- Examples - GEPP, GECP and GERP. Also tex original.
- Example - GENP can lead to a disaster, inaccurate result. Also tex original.
- Homework - Gaussian elimination,
- Homework - the growth factor and calculating the inverse of A .
- Homework - Cholesky and more condition numbers (and block GE).
- Example - disasters caused by a small pivot element Also tex original.
- The accuracy of Gaussian elimination and the growth factor Also tex original.
- Matlab code for Gaussian elimination with tournament pivoting: getp.m solves Ax = b using tournament pivoting, getp_block.m does an LU factorization of A using tournament pivoting, tslu.m does a "tall skinny" LU factorization using tournament pivoting (called by getp_block.m), and genp.m which does Gaussian elimination with no pivoting. This genp is an update to item 16C. The current version of genp allows A to be rectangular which is needed in tournament pivoting. Tournament pivoting is a communication avoiding pivoting scheme in the sense that the communication (between processors in a parallel processing environment or between fast and slow memory in environments with memory heirachy) is, within a modest factor, the mininum communication possible. Communication avoiding algorithms will be of increasing importance as the use of parallel processing expands. Parallel processing will soon be ubiquitous for scientific (and other) computing systems. The first article discussing tournament pivoting is from 2011: the method is very new!
- (a) genp_block.m : Matlab code for block Gaussian elimination without pivoting. The code calls genp.m, which is in item 24 above. (b) an example illustrating block GE without pivoting and (c) gepp_block.m : Matlab code for block GE with partial pivoting. See item 24D discussion of the block algorithm. Also see homework problem 8 in item 21 and the example in item 24b.. 24a,b,c updated on 10-5-2013.
- Computing assignment: - Try your own pivoting scheme . (the current version is the modified version for Fall 2013) The files in item 24 are required for the assignment. Also, as an extra credit option, you can use the Matlab Mex utility. Here are some files that illustrate how to use Matlab's Mex utility: gecp.m (describe use of the three files), gecp.c (a Mex gateway function), and gecpf.c (a C function implementing Gaussian elimination with complete pivoting). P.S. ignore any reference to f2c.h in the above material.
- Homework - Condition Number
- Example - the Cholesky decomposition. .Also tex original.
- Proof that Gaussian Elimination works . Also tex original.
- Study guides: (a) solving square linear systems and (b) miscellaneous topics.<
- Study guides: (a) vector and matrix norms (b) matrix condition numbers and (c) computer arithmetic.
- Example - the matrix condition number.
- Example - the matrix condition number. (second example)
- The Hilbert matrix - an (infamous) ill-condtioned matrix.
- Example - Errors from a Large Growth Factor. Also tex original.
- Limitations in storing floating point numbers. Know the range and significant digits entries in the "Key values" table, the items in bold in the table at the bottom of the page (and the remainder of the information).
- Details - storing floating point numbers in the IEEE standard.
- Example - overflow error: . Also word original.
- Example - subtractive cancellation: Patriot missile disaster . Also word original.
- Homework - Computer Arithmetic . Also tex original.
- Accuracy limits inherent in a problem and errors introduced by an algorithm .
- Computing assignment - calculate Pi in a manner similar to the calculations of Archimedes. This assignment has been updated. The older version is here. If you have not already started with the older version, please use the updated version.
- A poem about subtractive cancellation .
- Example - solving a least squares problem using the normal equations.. Also tex original.
- Example - solving a least squares problem using Gram-Schmidt and a QR factorization.. Also tex original.
- Example - solving a least squares problem with Householder transformations.. Also tex original.
- Project on Krylov Subspace Iterative Methods Description . This file has been updated for Fall 2013 (latest updates 11-15-2013, 9 am with minor changes and two significant changes: on page 4 0.02 was corrrect to 0.2 and on page 7 UFweb - a very useful tool - is mentioned). Please read the updated file.
- Obsolete item
- Ideas underlying the conjugate gradient method.. Also tex original.
- Properties of the conjugate gradient method.. Also tex original.
- Conjugate gradient algorithm and an example.. Also tex original.
- Homework for iterative methods..
- Matlab code (cg_step.m) that does one step of the conjugate gradient method..
- Summary of Iterative Methods for Non-symmetric Linear Equations That Are Related to the Conjugate Gradient (CG) Method.. Also tex original.
- Potential questions for the project. Updated 11-18-2013. Please see the additional potential questions.
- Format of the project report. Updated 11-18-2013.
- Properties of Krylov Subspace Iterative Methods for Solving Nonsymmetric Systems.. Also tex original
- Obsolete item
- Examples applying GMRES, BICG, CGS, BICGSTAB, QMR and LSQR to the sherman5 matrix (using routines provided with Matlab 7).
- Obsolete item
- Preconditioning.
- Obsolete item
- Obsolete item
- An example of bicg, preconditioned bicg and cg applied to the sherman5 matrix (using routines built-in Matlab 7 iterative routines ).
- Additional Matlab routines:
- These routines have been updated for Fall 2013 (latest updates to compare_methods.m and compare_methods_stats done on 11-18-2013, 1:30 pm). Please download the files and try them out. The 11-18-13 update allows for using restart in gmres. The routine compare_methods.m allows you to compare two iterative methods on a set of many matrices. Please also download the associated files: compare_methods_stats.m , binom_tails.m , cdfcalc.m , cdfplot2.m , tstat_calc.m , selectUF.m , UFcondest.mat , and UFkinds.mat . You will also need to install UFget so that it accessible from the same folder. After downloading compare_methods, move to the folder that contains compare_methods and type "help compare_methods" to see how to use the program. Also the MS Word file in item 47 discusses compare_methods and includes an example of its use.
- On 11-27-2013 the routines compare_methods.m and compare_methods_stats.m have been updated. Also two new routines iter_stats.m and show_convergence_plots.m are now available. The routine show_convergence_plots allows one to conveniently redisplay all the converge plots for a run of compare_methods. The routine iter_stats compares the iteration counts from a run of compare_methods using a paired sample t-test. The new routines will only work with data from a run of the updated compare_methods. I recommend that you download these updated and new files.
- Routine mat_init.m is helpful if you download matrices in Matlab format (rather than Matrix Market) format from the UF website. mat_init.m initializes variables in a convenient manner.

- Study guide for iterative methods.
- The Algebra of a Reflection (first idea behind least squares algorithm using Householder transformations). Also tex original (except for a picture).
- A Reflection to Zero Out All but the First Component of a Vector (second idea behind least squares algorithm using Householder transformations). Also tex original (except for a picture).
- The Accuracy of Algorithms for Solving Least Squares Problems. Also tex original.
- Example illustrating the Accuracy of Algorithms for Solving Least Squares Problems. Also tex original.
- Study guide for rectangular systems.
- Study guide for eigenvalues.

INTRODUCTORY MATERIAL:

MATRIX DECOMPOSITIONS / LINEAR ALGEBRA REVIEW / NORMS:

SQUARE LINEAR SYSTEMS (GUASSIAN ELIMINATION, GROWTH FACTOR, CHOLESKY AND CONDITION NUMBERS):

COMPUTER ARITHMETIC:

LEAST SQUARES / RECTANGULAR SYSTEMS:

ITERATIVE METHODS:

MORE LEAST SQUARES / RECTANGULAR SYSTEMS:

EIGENVALUES: