I was trying to convert a MATLAB program to C program and i came across a problem where i got stuck. My Matlab program has an equation of the form 'A \ B', where '\' is mldivide in MATLAB. Matrix 'A' = D' * D, where D = nX9 matrix. Hence the matrix 'A' will be a symmetric matrix. Upon solving this and checking the sparse of 'A\B', the MATLAB is displaying,
sp\: bandwidth = 8+1+8.
sp\: is A diagonal? no.
sp\: is band density (1) > bandden (0.5) to try banded solver? yes.
sp\: is LAPACK's banded solver successful? yes.
I wanted to write a C code for banded solver. I checked the LAPACK library but i could not understand on how to use the same. If i make all, then there will be a static library generated, but i do not want to use all the library files, since this code would go on a micro-controller and i do not want unwanted files/libraries. If there is any reference for Banded solver algorithm, so that i can replicate in 'C' program, it would be very helpful.
Matrix 'A' can be any one of the following,
1.2013 0.2676 0.4950 0.1863 0.0877 0.0738 0.0001 -0.0000 -0.0001
0.2676 1.0004 0.4776 0.1181 0.0710 -0.0243 0.0000 0.0001 -0.0001
0.4950 0.4776 1.5497 0.1826 0.0065 0.1060 -0.0000 0.0000 -0.0002
0.1863 0.1181 0.1826 1.0705 0.1477 0.1420 -0.0000 0.0000 -0.0000
0.0877 0.0710 0.0065 0.1477 1.9799 0.3652 -0.0001 -0.0000 -0.0000
0.0738 -0.0243 0.1060 0.1420 0.3652 1.9103 -0.0000 -0.0001 0.0000
0.0001 0.0000 -0.0000 -0.0000 -0.0001 -0.0000 0.0000 0.0000 0.0000
-0.0000 0.0001 0.0000 0.0000 -0.0000 -0.0001 0.0000 0.0000 0.0000
-0.0001 -0.0001 -0.0002 -0.0000 -0.0000 0.0000 0.0000 0.0000 0.0000
or
1.0891 0.2368 0.4743 0.1291 -0.2816 -0.0688 0.0002 0.0000 -0.0001
0.2368 0.5177 0.3292 0.0683 -0.0396 -0.0652 0.0000 0.0000 -0.0001
0.4743 0.3292 1.7228 0.0809 -0.2229 0.0101 0.0000 -0.0000 -0.0003
0.1291 0.0683 0.0809 0.9471 -0.1376 -0.0792 0.0000 0.0000 -0.0000
-0.2816 -0.0396 -0.2229 -0.1376 1.8972 0.1617 -0.0001 -0.0000 0.0000
-0.0688 -0.0652 0.0101 -0.0792 0.1617 1.3168 -0.0000 -0.0001 -0.0000
0.0002 0.0000 0.0000 0.0000 -0.0001 -0.0000 0.0000 0.0000 -0.0000
0.0000 0.0000 -0.0000 0.0000 -0.0000 -0.0001 0.0000 0.0000 -0.0000
-0.0001 -0.0001 -0.0003 -0.0000 0.0000 -0.0000 -0.0000 -0.0000 0.0000
Thanks!