Intel® oneAPI Math Kernel Library
Ask questions and share information with other developers who use Intel® Math Kernel Library.

LAPACK examples available anywhere?

bm12
Beginner
397 Views
Hi,
I want to know if there are any examples available anywhere as to how to use the LAPACK functions. I want to verify whether the result Im getting after calls to LAPACK functions is correct or not. So is there some place where some test data is given for LAPACK functions and the output after call to each function.
Many thanks,
BM.
0 Kudos
3 Replies
jonnin
Beginner
397 Views
Just create or borrow some simple examples from a linear algebra book. Find a problem that is worked out step by step and verify each step by printing out the result. Alternately, reverse the solved problem and try to get your initial inputs back (for some types of problems you can do this). The 'sweedish chef' names and 'stuff must be in the upper juangolian form before calling this routine' usage makes the initial learning curve a little rough, but you will get a feel for it soon enough.
0 Kudos
John_L_4
Beginner
397 Views
You might try www.netlib.org. The LAPACK distributions come with testing/timing code.
John
0 Kudos
Intel_C_Intel
Employee
397 Views

Did you look at the examples that come with MKL? In the /examples/lapack/source are example codes for much of the LAPACK code. The needed data to run them is in the /data directory.

Bruce

0 Kudos
Reply