15
votes

I wonder what is the difference between LAPACKE and LAPACK. I want to do Eigen analysis with QZ decomposition, but I'm not sure if I should start with LAPACKE or LAPACK. I appreciate any help.

2
From the Stack Overflow tag descriptions and reading various Google search results and Wikipedia, it looks like LAPACK is a FORTRAN library written in FORTRAN, and LAPACKE is a C wrapper library around the FORTRAN LAPACK library. - ajp15243

2 Answers

17
votes

LAPACKE is the C wrapper for the standard F90 LAPACK library. Honestly, its easier (and more efficient) to do things directly with LAPACK just as long as you store things column-major. LAPACKE ends up calling (in some fashion) the LAPACK routines anyways.

9
votes

You probably want to use LAPACKE as it frees you from writing helpers for converting from/to row-major mode to column major mode for matrices before/after LAPACK calls.