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 problems 6 and 7, you should
have the entire main() program functioning.
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.