Developer Reference

Intel® oneAPI Math Kernel Library LAPACK Examples

ID 766877
Date 10/31/2024
Public
Document Table of Contents

Compiling and Running Examples

The examples contain sample input data in their body.

C and Fortran examples for the same routine contain exactly the same input data and should produce the same output, with possible differences in the amount of white spaces. For -0.00 and 0.00 (signed and unsigned zero), you can safely ignore these differences. The same input data is provided for double and single precision examples, for example, dgels and sgels, or cgeev and zgeev. The output of the same routine in different precisions should differ only after several digits in mantissa, because single precision routines provide less precise results than double precision routines.

  1. Open an example topic by clicking the respective routine name in any list of routines in the API section.


    open example via routine name link

  2. Compile and link with your LAPACK software (oneMKL or any other LAPACK implementation), using a related compiler. For example, use a C compiler for the C examples. You can make use of the web-based Intel® oneAPI Math Kernel Library Link Line Advisor to create a correct link line.

  3. Run the compiled example.