Page 1 of 1

would like to see a sample/example program

PostPosted: Fri Feb 04, 2005 7:09 pm
by cts5678
Hi all,

I'm new to LAPACK and I haven't been able thus far to locate an example or sample program (preferably in C although I guess FORTRAN would work) to do Gaussian elimination on an m x n matrix. Can any of you help? If it's in the doc, if you could just point me in the general direction of the right place in the doc that would work too. I'm was guessing I need to call SGESV, then I noticed SGESV is only for n x n matrices.

TIA

Erich

PostPosted: Sat Feb 05, 2005 1:06 am
by Julien Langou
Hello,

To perform a Gaussian elimination on a rectangular matrices, use xGETRF.

I cleaned a bit one of my code for the purpose. Available at:
http://www.cs.utk.edu/~langou/lapack-su ... 678/test.c

Julien Langou