Next: 2 Public Functionality
Up: 1.5 A Quick Look
Previous: 1.5.1 Example Code
Under a Unix style system compilation is straight forward. Put the file,
EMatrix.h, in the same directory as you source code and issue the
$ g++ -ansi -pedantic -Wall -D_HAVE_LAPACK example0.cpp -llapack -lg2c
0.191504 0.928666 -1.200350
-0.293600 -0.054978 0.866813
0.580886 -0.968679 0.851310
The following assumptions are made:
- g++, the GNU C++ compiler, is installed and in the path.
- Lapack is installed, otherwise remove the -D_HAVE_LAPACK
- liblapack.so is the name of your Lapack library and it is in the
library search path.
- Under Linux and g++ one must link with libg2c because
Lapack is FORTRAN based and requires this library.