LAPACK Calls in Generated Code
To improve the execution speed of code generated for certain linear algebra functions, MATLAB® Coder™ can generate calls to LAPACK functions instead of generating the code for the linear algebra functions. LAPACK is a software library for numerical linear algebra. MATLAB Coder uses the LAPACKE C interface to LAPACK.
For MEX generation, if the input arrays for the linear algebra functions meet certain criteria, the code generator produces LAPACK calls. For standalone code (library or executable program), by default, the code generator does not produce LAPACK calls. If you specify that you want to generate LAPACK calls, and the input arrays for the linear algebra functions meet the criteria, the code generator produces LAPACK calls. See Speed Up Linear Algebra in Generated Standalone Code by Using LAPACK Calls.
For MEX functions, the code generator uses the LAPACK library
that is included with MATLAB. MATLAB uses LAPACK in some
linear algebra functions such as eig
and svd
.
For standalone code, the code generator uses the LAPACK library that
you specify. See Specify LAPACK Library.