Main Content

Custom BLAS library callback

Callback for custom BLAS library usage

Model Configuration Pane: Code Generation


The Custom BLAS library callback parameter specifies a 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.


'' (default) | on

Specifies 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.


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

Recommended Settings

DebuggingNo impact
TraceabilityNo impact
EfficiencyNo impact
Safety precautionNo impact

Programmatic Use

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


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

Version History

Introduced in R2018b