This is due Tuesday, October 21 in class.
Please e-mail your Matlab script(s) to
Write a Matlab script to compute Ax for a matrix A stored in the IJA/AM very
modified column sparse matrix format (R. E. Bank and R. K. Smith, General
sparse elimination requires no permanent integer storage, SIAM J. Sci.
Stat. Comp., 8 (1987), pp. 574-584).
Use your conjugate gradient code from Assignment 3 to compute the solution
using the sparse matrix IJA/AM.
(Make a copy of your code from Assignment 3 before you begin.)
Instead of using n=4, as in Assignment 3, now use n=50.
You will have a matrix of order 2500 instead of 16.
(Do not print anything other than the residual norm per iteration.)
How many iterations does it take to reduce the residual norm by
10-6?
I have placed a sample matrix A, AM, and IJA in a
hints file.
From the text, do the following:
| Page | Problem |
|---|---|
| 64 | 11 |
| 64 | 16 |
| 64 | 19 |
Cheers,
Craig C. Douglas