coder.BLASCallback Class
Namespace: coder
Abstract class for specifying the BLAS library and CBLAS header and data type information for BLAS calls in generated code
Description
coder.BLASCallback
is an abstract class for defining a
BLAS callback class. A BLAS callback class specifies the BLAS library and CBLAS header and
data type information to use for BLAS 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 vector and matrix function calls, you can generate BLAS
calls. To generate BLAS calls, set the appropriate
configuration parameter to the name of the BLAS callback class.
For code generation by using the MATLAB Coder
codegen
command, setCustomBLASCallback
.For code generation by using the MATLAB Coder app, set Custom BLAS library callback.
For code generation for a MATLAB Function block by using Simulink® Coder, set Custom BLAS library callback.
To define a BLAS callback class with the name useMyBLAS
,
make the following line the first line of your class definition
file.
classdef useMyBLAS < coder.BLASCallback
updateBuildInfo
, getHeaderFileName
, and
getBLASIntTypeName
methods. The other methods,
getBLASDoubleComplexTypeName
,
getBLASSingleComplexTypeName
, and
useEnumNameRatherThanTypedef
, are already implemented in
coder.BLASCallback
. In certain situations, you must override these
methods with your own definitions when you define your callback class.
All methods are static and are not compiled.Methods
Examples
Version History
Introduced in R2018b