Ignore the warnings (mostly deprecated conversion from string constant to 'char*') and pay attention to thecompilation lines Notice that executable lsymreg is the only working example that does not core-dump To check what you need to compile, let's examine the the examples in $whereisarpack/arpack++/examples directory in particular for finding the eigenvalues of a symmetric matrix using superlu, go to into the proper subdirectory and compile:Ĭd $whereisarpack/arpack++/examples/superlu/sym Where you should substitute to $whereisarpack the place where arpack++.tar.gz has been untarredĪ brief tutorial is contained in the directory $whereisarpack/arpack++/doc anyhow, besides including the arpack++ headers, you need also to link with the required numerical libraries (arpack,superlu,lapack,blas.) to do so it is useful to look at the codes contained in $whereisarpack/arpack++/examples/superlu/sym +FORTRAN_LIBS = -lgfortran -lgfortranbegin -lnslĪnd check that it is version 1.2 with the commandĪt this point arpack++ should be working: as it is only a c++ interface to arpack, there are no libraries but only header files to be included into your c++ code therefore you need to compile with
INSTALL GFORTRAN COMPILER UBUNTU PATCH
Open with an editor the patch file arpack++1.2.patch.diff
INSTALL GFORTRAN COMPILER UBUNTU INSTALL
Prior to installing Arpack++, the following packages have to be installed:Īpt-get install libarpack2-dev libsuperlu3-dev gfortranĭownload arpack++ 1.2 (beta version) at and the patch for arpac++ 1.2 at in the same directory While in theory ARPACK++ is in the Ubuntu and in the Debian ditribution, it is an old wrapper and encounters errors with more recent compiler it must therefore be installed and fixed manually. It preserves the full capability, performance, accuracy and low memory requirements of the FORTRAN package, but takes advantage of the c++ object-oriented programming environment. ARPACK++ is a collection of classes that offers c++ programmers an interface to ARPACK. Tested with: Ubuntu 8.04 (Hardy Heron) and Ubuntu 9.10 (Karmic Koala)ĪRPACK is a well known collection of FORTRAN subroutines designed to compute a few eigenvalues and eigenvectors of large scale sparse matrices.