Solve a System of Linear Equations, Ax=B

Here is a Fortran program which solves a system of linear equations: LIN_EQ.F It is compiled via: gfortran -o LIN_EQ LIN_EQ.F -llapack The program uses the LAPACK subroutine: DGESV * * * A version written in C/C++ is given at:  linear_eq.cpp  It is compiled via: gcc… 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

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