We provide a few examples to show how to use <T>LAPACK. Each example has its own directory with separate build and description. They all assume that <T>LAPACK is installed.
This is the list of examples and brief descriptions:
-
Compute the QR factorization of a matrix filled with random numbers.
-
Compute C - AB using matrices A, B and C.
-
Scale matrices using different access types.
-
Compute C - AB using matrices A, B and C with a code written in C.
-
Compute c x + y using complex matrices x and y and a complex scalar c, with a code written in Fortran90.
-
Compute C - AB using matrices A, B and C with a code written in Fortran90.
-
Combine different matrix layouts from mdspan to compute C - A B using matrices A, B and C.
-
Compare the QR factorization from Eigen and <T>LAPACK. We use Eigen::Matrix as the data structure.
-
Create a static library with single precision from the <T>LAPACK library.
-
Use <T>LAPACK with different data structures: std::mdspan, std::vector and Eigen::Matrix.