## examples with clapack for a beginner

Post here if you have a question about LAPACK or ScaLAPACK algorithm or data format

### examples with clapack for a beginner

Hello everyone. Im newbie ...better this is my 1st touch at this of programming.
after a try of a week to install the library at my visual studio 2010 its time to learn about this library.
This library is my nightmare the last days. Because despite i know matlab i must use C to solve my problems...
I search all over the web and i didn't found anything that is helpful for my situation...
At my problems i use to have the below linear algebra things full of matrices.
To solve linear equations:
A' * x =b ->
matrix transpose;
matrix inverse;
matrices multiplication;
and other...

Could you send me a link? a doc? or something else with understandable-user-friendly examples by a beginner like me.......

Also why there so many algorithms for inverse() ?? for example.. i found the last example http://www.nag.co.uk/numeric/FL/manual/pdf/F07/f07ajf.pdf and the result is different from matlab's inv() ,
why this is happened ??
This is for all the functions???
jimbakl

Posts: 3
Joined: Fri Nov 18, 2011 3:55 pm

### Re: examples with clapack for a beginner

Hi,
A' * x =b -> DGESV: LAPACK
matrix inverse; > DGETRI: LAPACK
matrices multiplication; DGEMM: BLAS

http://www.nag.co.uk/lapack-ex/ is a good source of Fortran example,
and of course you have the LAPACK User guide available online at http://www.netlib.org/lapack/lug/

To call Fortran Routine from C
http://www.fkf.mpg.de/edv/docs/intel_co ... nguage.htm

For example, there is also
http://software.intel.com/sites/product ... /index.htm
Click on the routine name and the kind of example you are looking for DGESV C Example: http://software.intel.com/sites/product ... v_ex.c.htm

Julie

Posts: 609
Joined: Wed Dec 08, 2004 7:07 pm

### Re: examples with clapack for a beginner

specifically i want to use clapack for Linear programming problems, and mainly Simplex, Revised Simplex Method etc , like these but with huge matrices.. You advise me to use this library ? or something else..