The object of this assignment is to compile the Ntuples code. This code calculates inner products of wavelets and their derivatives of order DN (for more information, check out the inner product papers here).
This is a fairly typical task in scientific computing. In order to build Ntuples, you will need the Basic Linear Algebra Subroutines (BLAS) and LAPACK libraries. Part of the assigment involves building BLAS; the LAPACK library has been built for you due to its size.
/bin/rm -rf $HOME/.netscape/cache
find $HOME \( -name '*.ps' -o -name '*.dvi' \) -print
gzip filenameYou can uncompress these files later using
gunzip filename
cd blas gzip -dc < ../blas.tgz | tar xf -At this point, you can remove blas.tgz to reclaim some space.
f77 -O -cfor each FORTRAN file in the BLAS distribution. When finished, you should have an object file,.f
ar crv ../blas.a *.o
ranlib ../blas.a
gzip -dc < ntuples.tar.gz | tar xf -You should end up with a directory called Ntuples-3/.
cd ../bin ./goThe code will ask you a number of questions. A transcript follows -- stuff that you will type is in bold:
ARRAY SIZE SET AT: 1024 ENTER P AND DN: 0,6 ENTER 2 FOR 2-TUPLES, 3 FOR 3-TUPLES 2 RESOLUTION SET AT= 1 DAUBECHIES GENUS CHOSEN: 6 enter d1,d2 1,0 RESIDUAL IN CNCT2 CALC: -0.225300629208915967E-17 INFO (must be zero): 0 NUMBER OF COLUMNS 9 EFFECTIVE RANK 9 CONDITION NUMBER 303
Once you have turned in the assignment, you can remove the library libblas.a and the Ntuples source code directory and tarfile.