Go to the source code of this file.
#define | WANT_STREAM |
int | my_main () |
int | main () |
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.
#define WANT_STREAM |
Definition at line 17 of file nm_ex2.cpp.
int main | ( | void | ) |
Definition at line 67 of file nm_ex2.cpp.
int my_main | ( | ) |
Definition at line 27 of file nm_ex2.cpp.