Package: coder
Abstract class for specifying the LAPACK library and LAPACKE header file for LAPACK calls in generated code
coder.LAPACKCallback
is an abstract class for
defining a LAPACK callback class. A LAPACK callback class specifies
the LAPACK library and LAPACKE header file to use for LAPACK calls
in code generated from MATLAB® code. If you use MATLAB Coder™ to
generate standalone code or generate code for the MATLAB Function block,
for certain linear algebra function calls, you can generate LAPACK
calls. To generate LAPACK calls, specify the name of the LAPACK callback
class.
If you generate code by using the MATLAB Coder codegen
command,
set the code configuration object property CustomLAPACKCallback
to
the name of the callback class.
If you generate code by using the MATLAB Coder app, set Custom LAPACK library callback to the name of the callback class.
If the code is in the MATLAB Function block and you have Simulink® Coder, in the Configuration Parameters dialog box, in the Code Generation category, on the All Parameters tab, set Custom LAPACK library callback to the name of the callback class.
To define a LAPACK callback class with the name useMyLAPACK
,
make the following line the first line of your class definition file.
classdef useMyLAPACK < coder.LAPACKCallback
You must define all of the methods listed in Methods. These methods are static and are not compiled.
getHeaderFilename | Return file name of LAPACKE header file |
updateBuildInfo | Update build information for linking to a specific LAPACK library |