As an aside, if you return to our examples of the sweep function, you will see a good example for why one wants object-oriented programming. Look at all of the pieces that are lying around, unconnected.
The remainder of the examples illustrate the use of the Cholesky, QR, eigen and singular value decompositions.