BLAS Update

It appears GotoBLAS2 has been deprecated (i.e. orphaned). The new standard is OpenBLAS. OpenBLAS is an optimized BLAS library based on GotoBLAS2 1.13 BSD version. OpenBLAS is an open source project supported by Lab of Parallel Software and Computational Science, Institute of Software Chinese Academy… Read more

GotoBLAS2

MinGW should be installed first. Next… GotoBLAS2 GotoBLAS2 is an implementation of Basic Linear Algebra Subprograms (BLAS). LAPACK uses BLAS. GotoBLAS2 has configurations for a variety of hardware platforms. It builds a library that is optimized for the given PC’s CPU. Make a folder called:… Read more

Matrix Inversion in LAPACK

Here is a Fortran program which performs matrix inversion using the LU decomposition method:  INVERSE_MATRIX.F It is compiled via: gfortran -o INVERSE_MATRIX INVERSE_MATRIX.F -llapack It compiles & runs under both Ubuntu & Cygwin. See also: http://www.nag.com/numeric/fl/nagdoc_fl23/examples/source/f07ajfe.f90 * * * The INVERSE_MATRIX.F program uses the subroutines:… Read more

Mixed C++ Fortran Programming

This is another matrix multiplication project using the BLAS function dgemm. It is complied and run in an Ubuntu system. The set consists of two programs:  (right mouse click.  save target or link as) matrix_mult_cf.cpp fort_matmul_main.f The set calculates: C = A*B The C++ program… Read more

Cygwin

Cygwin is a collection of tools which provide a Linux look and feel environment for Windows. It is also a DLL (cygwin1.dll) which acts as a Linux Application Programming Interface (API) layer providing substantial Linux API functionality. Cygwin is not a way to run native… Read more

Install CBLAS in Ubuntu & Cygwin

CBLAS is C interface to the BLAS library. * * * Ubuntu Installation instructions: BLAS must be installed first. The instructions for BLAS are given at: Generalized Eigenvalue Problem & BLAS Next, wget http://www.netlib.org/blas/blast-forum/cblas.tgz tar zxf cblas.tgz Go to CBLAS folder. Open Makefiles.in in a… Read more

Lapack in Ubunutu

Blas and Lapack may be installed on an Ubuntu system using the instructions at: Generalized Eigenvalue Problem * * * C++ programs that use Lapack can be compiled in Terminal or Bash shell mode via: g++ file_in -o file_out -lgfortran -llapack -lm where file_in is… Read more