Main Content

Custom BLAS library callback


Specify BLAS library callback class for BLAS calls in code generated from MATLAB® code. This parameter applies to MATLAB code in a MATLAB Function block, a Stateflow® chart, or a System object™ associated with a MATLAB System block.

Category: Code Generation


Default: ''

Specify the name of a BLAS callback class that derives from coder.BLASCallback. If you specify a BLAS callback class, for certain low-level vector and matrix operations, the code generator produces BLAS calls by using the CBLAS C interface to your BLAS library. The callback class provides the CBLAS header and data type information and the information required to link to your BLAS library. If this parameter is empty, the code generator produces code for the vector and matrix functions instead of a BLAS call.


The class definition file must be in a folder on the MATLAB path.


Specify only the name of the class. Do not specify the name of the class definition file.

Command-Line Information

Parameter: CustomBLASCallback
Type: character vector
Value: class name
Default: ''

Recommended Settings

DebuggingNo impact
TraceabilityNo impact
EfficiencyNo impact
Safety precautionNo impact

Related Topics