This problem allows you to evaluate for yourself, on your own computer, the compute rate and relative cost of different operations in the innermost loop.
To help you with the problem, Appendix C contains a
function timer() which computes the FLOP rate for the various
subroutines which you will write; a main() program which prints out
various information; and a function mult() as an example of a routine
to be timed. At present, much of the main() program is commented out.
By the end of this problem set, you should have most of the main()
program functioning. The last parts involving matrix and vector
operations will not be used until the next problem set.
Note: Because of operating system dependencies in timing
routines, those using the Windows compiler should replace timer() from
Appendix C with the routine in
Appendix D.