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.

#define WANT_STREAM
 
int my_main ()
 
int main ()
 

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.

Macro Definition Documentation

#define WANT_STREAM

Definition at line 17 of file nm_ex2.cpp.

Function Documentation

int main ( void  )

Definition at line 67 of file nm_ex2.cpp.

int my_main ( )

Definition at line 27 of file nm_ex2.cpp.



kni
Author(s): Martin Günther
autogenerated on Fri Jan 3 2020 04:01:17