主要内容

RTW.TflCBlasEntryGenerator

创建 CBLAS 运算的代码替换表条目

说明

obj = RTW.TflCBlasEntryGenerator 创建 CBLAS 运算符的代码替换表条目的句柄 obj。该条目将运算符的概念表示映射到实现(替换)表示。

示例

示例

全部折叠

此示例说明如何创建 CBLAS 运算符的代码替换表条目 hEnt

hTable = RTW.TflTable;

arch = computer('arch');
compilerName = 'my_compiler';
LibPath = fullfile('$(MATLAB_ROOT)', 'extern', ...
    'lib', arch, compilerName);

op_entry = RTW.TflCBlasEntryGenerator;

libExt = 'lib';

setTflCOperationEntryParameters(op_entry, ...
    'Key',                      'RTW_OP_MUL', ...
    'Priority',                 100, ...
    'ImplementationName',       'dgemm32', ...
    'ImplementationHeaderFile', 'my_cblas_compatible_crl.h', ...
    'ImplementationHeaderPath', fullfile('$(MATLAB_ROOT)','extern','include'), ...
    'AdditionalLinkObjs',       {['my_lib_cblas_compatible.' libExt]}, ...
    'AdditionalLinkObjsPaths',  {LibPath}, ...
    'SideEffects',              true);

输出参量

全部折叠

obj 是创建的 CBLAS 运算符代码替换表条目的句柄。

版本历史记录

在 R2010a 中推出