Page 1 of 1

How to store a band matrix in C

PostPosted: Wed Feb 13, 2013 12:36 pm
by imperius
Hello. I am new in BLAS/LAPACK and i want to use routines for banded matrices. How does someone store a banded matrix in C?

Re: How to store a band matrix in C

PostPosted: Wed Feb 13, 2013 1:09 pm
by admin
First, look at how it is done in Fortran : http://www.netlib.org/lapack/lug/node124.html and http://www.netlib.org/lapack/explore-ht ... solve.html.
After if you want to use C, use the LAPACKE library (inside LAPACK) and proceed to the necessary modifications.
LAPACKE can work with either column-major (Fortran) or row-major (C) matrices . See http://netlib.org/lapack/lapacke.html

Hope it helps
Julie