difference between lapacke and lapack

10.7k views Asked by At

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

There are 2 answers

0
Kostya On BEST ANSWER

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.

1
Dave Williams On

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.