newmat/nm_ex2.cpp File Reference

#include "newmatap.h"
#include "newmatio.h"
Include dependency graph for nm_ex2.cpp:

Go to the source code of this file.


Detailed Description

Very simple example 2.

Generate a Hilbert matrix and work out its eigenvalues and eigenvectors; check result by multiplying out.

The Hilbert matrix is notoriously ill-conditioned (difficult to invert). In this example, I calculate the eigenvalues of a 7 x 7 Hilbert matrix.

The dimensions of this matrix are not large enough for there to be numerical problems but we will be able to see that wide range of values of the eigenvalues.

Definition in file nm_ex2.cpp.


Generated on Sun May 9 12:26:14 2010 for Realea by  doxygen 1.6.1