Jump to my Home Page Send me a message Check out stuff on GitHub Check out my photography on Instagram Check out my profile on LinkedIn Check out my profile on reddit Check me out on Facebook

Mitch Richling: Example BLAS/LAPACK Programs

Author: Mitch Richling
Updated: 2023-11-15

Table of Contents

1. Introduction

You will find several simple examples of programs to get you started with the BLAS and LAPACK APIs commonly used for scientific programming tasks.

Get it all on github: https://github.com/richmit/ex-blas-lapack/

2. BLAS

blas1C.c & blas1F.f
Simple examples of some of the level 1 BLAS functions
blas2C.c & blas2F.f
Simple examples of some of the level 2 BLAS functions.
blas2bC.c
This is the same as blas2C.c, but uses Fortran-style column major order.
blas3C.c & blas3F.f
Simple examples of some of the level 3 BLAS functions (with row/column order options in the CBLAS).

3. LAPACK

slvSysC.c & slvSysF.f
Solving a simple linear system.
triSlvF.f
Solving a triangular linear system.
symEig.f
Finding the eigenvalues of a symmetric matrix.

4. BLAIO (Basic Linear Algebra I/O)

blaio.c & blaio.h
Simple I/O operations handy for example programs (C version)
blaio.f
Simple I/O operations handy for example programs (Fortran version)